Update app.py
Browse files
app.py
CHANGED
@@ -107,12 +107,12 @@ def send_SMS(resp_text):
|
|
107 |
# gradio block
|
108 |
with gr.Blocks() as app1:
|
109 |
with gr.Column():
|
110 |
-
gr.Markdown("## to Samuraize ##")
|
111 |
gr.Markdown("```for email β and/or assigment descriptions β¦, paste screenshot here...```")
|
112 |
-
image_box = gr.Image(label="
|
113 |
btn1 = gr.Button("Generate To-Dos β")
|
114 |
out1 = gr.Textbox(label="here are the actionables...")
|
115 |
-
btn2 = gr.Button("
|
116 |
out2 = gr.Textbox(label="response from SMS gateway...")
|
117 |
|
118 |
btn1.click(fn=app1_response, inputs=[image_box], outputs=out1)
|
@@ -132,12 +132,12 @@ with gr.Blocks() as app1:
|
|
132 |
|
133 |
with gr.Blocks() as app2:
|
134 |
with gr.Column():
|
135 |
-
gr.Markdown("## Stock-Out Squirrel ##")
|
136 |
gr.Markdown("```Win+Screenshot, paste ERP Inv β¨ screenshot here...```")
|
137 |
-
image_box = gr.Image(label="
|
138 |
btn1 = gr.Button("Check ROQ β")
|
139 |
out1 = gr.Textbox(label="here is the watch list π...")
|
140 |
-
btn2 = gr.Button("send out reminders
|
141 |
out2 = gr.Textbox(label="response or feed back?")
|
142 |
|
143 |
btn1.click(fn=app2_response, inputs=[image_box], outputs=out1)
|
@@ -156,8 +156,8 @@ with gr.Blocks() as app2:
|
|
156 |
""")
|
157 |
|
158 |
with gr.Blocks() as demo:
|
159 |
-
gr.Markdown("## To-Do
|
160 |
-
gr.TabbedInterface([app1, app2], ["β To-Do
|
161 |
|
162 |
demo.queue()
|
163 |
demo.launch()
|
|
|
107 |
# gradio block
|
108 |
with gr.Blocks() as app1:
|
109 |
with gr.Column():
|
110 |
+
gr.Markdown("## π₯· to Samuraize ##")
|
111 |
gr.Markdown("```for email β and/or assigment descriptions β¦, paste screenshot here...```")
|
112 |
+
image_box = gr.Image(label="β email screen", type="filepath")
|
113 |
btn1 = gr.Button("Generate To-Dos β")
|
114 |
out1 = gr.Textbox(label="here are the actionables...")
|
115 |
+
btn2 = gr.Button("send to Mobile β²")
|
116 |
out2 = gr.Textbox(label="response from SMS gateway...")
|
117 |
|
118 |
btn1.click(fn=app1_response, inputs=[image_box], outputs=out1)
|
|
|
132 |
|
133 |
with gr.Blocks() as app2:
|
134 |
with gr.Column():
|
135 |
+
gr.Markdown("## 𦫠Stock-Out Squirrel ##")
|
136 |
gr.Markdown("```Win+Screenshot, paste ERP Inv β¨ screenshot here...```")
|
137 |
+
image_box = gr.Image(label="β ERP screen",type="filepath")
|
138 |
btn1 = gr.Button("Check ROQ β")
|
139 |
out1 = gr.Textbox(label="here is the watch list π...")
|
140 |
+
btn2 = gr.Button("send out reminders β²")
|
141 |
out2 = gr.Textbox(label="response or feed back?")
|
142 |
|
143 |
btn1.click(fn=app2_response, inputs=[image_box], outputs=out1)
|
|
|
156 |
""")
|
157 |
|
158 |
with gr.Blocks() as demo:
|
159 |
+
gr.Markdown("## To-Do Samuraizer π₯· + Stock-Out Squirrel𦫠##")
|
160 |
+
gr.TabbedInterface([app1, app2], ["β To-Do", "β SOS"])
|
161 |
|
162 |
demo.queue()
|
163 |
demo.launch()
|