Update app.py
Browse files
app.py
CHANGED
@@ -72,7 +72,7 @@ def send_SMS(resp_text):
|
|
72 |
# gradio block
|
73 |
with gr.Blocks() as app1:
|
74 |
with gr.Column():
|
75 |
-
gr.Markdown("```
|
76 |
image_box = gr.Image(type="filepath")
|
77 |
btn1 = gr.Button("generate To-Dos")
|
78 |
out1 = gr.Textbox(label="here are the actionables...")
|
@@ -93,11 +93,34 @@ with gr.Blocks() as app1:
|
|
93 |
[demo](https://youtu.be/lJ4jIAEVRNY)
|
94 |
|
95 |
""")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
96 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
|
98 |
with gr.Blocks() as demo:
|
99 |
gr.Markdown("## Workflow Bot ##")
|
100 |
-
gr.TabbedInterface([app1,
|
101 |
|
102 |
demo.queue()
|
103 |
demo.launch()
|
|
|
72 |
# gradio block
|
73 |
with gr.Blocks() as app1:
|
74 |
with gr.Column():
|
75 |
+
gr.Markdown("```for email and/or instruction, paste screenshot here...```")
|
76 |
image_box = gr.Image(type="filepath")
|
77 |
btn1 = gr.Button("generate To-Dos")
|
78 |
out1 = gr.Textbox(label="here are the actionables...")
|
|
|
93 |
[demo](https://youtu.be/lJ4jIAEVRNY)
|
94 |
|
95 |
""")
|
96 |
+
|
97 |
+
with gr.Blocks() as app2:
|
98 |
+
with gr.Column():
|
99 |
+
gr.Markdown("```Stock-Out Shamer, paste ERP Inv screenshot here...```")
|
100 |
+
image_box = gr.Image(type="filepath")
|
101 |
+
btn1 = gr.Button("check ROQ")
|
102 |
+
out1 = gr.Textbox(label="here is the watch list...")
|
103 |
+
btn2 = gr.Button("send out reminders")
|
104 |
+
out2 = gr.Textbox(label="response or feed back?")
|
105 |
+
|
106 |
+
btn1.click(fn=app1_response, inputs=[image_box], outputs=out1)
|
107 |
+
btn2.click(fn=send_SMS, inputs=out1, outputs=out2)
|
108 |
|
109 |
+
gr.Markdown("""
|
110 |
+
# Make a Plan #
|
111 |
+
|
112 |
+
- screen capture (Win + shift + S)
|
113 |
+
- click **Make a Plan** to upload
|
114 |
+
- await LLM Bot (Gemini, in this case) response
|
115 |
+
- receive THREE actionable items
|
116 |
+
|
117 |
+
[demo](https://youtu.be/lJ4jIAEVRNY)
|
118 |
+
|
119 |
+
""")
|
120 |
|
121 |
with gr.Blocks() as demo:
|
122 |
gr.Markdown("## Workflow Bot ##")
|
123 |
+
gr.TabbedInterface([app1, app2], ["To-Dos", "SOS"])
|
124 |
|
125 |
demo.queue()
|
126 |
demo.launch()
|