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("##
|
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("
|
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,11 +132,11 @@ with gr.Blocks() as app1:
|
|
132 |
|
133 |
with gr.Blocks() as app2:
|
134 |
with gr.Column():
|
135 |
-
gr.Markdown("##
|
136 |
gr.Markdown("```Win+Screenshot, paste ERP Inv β¨ screenshot here...```")
|
137 |
-
image_box = gr.Image(label="ERP
|
138 |
-
btn1 = gr.Button("
|
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 |
|
@@ -157,7 +157,7 @@ with gr.Blocks() as app2:
|
|
157 |
|
158 |
with gr.Blocks() as demo:
|
159 |
gr.Markdown("## Workflow Bot ##")
|
160 |
-
gr.TabbedInterface([app1, app2], ["
|
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("Notify Related Parties π₯")
|
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 |
|
|
|
157 |
|
158 |
with gr.Blocks() as demo:
|
159 |
gr.Markdown("## Workflow Bot ##")
|
160 |
+
gr.TabbedInterface([app1, app2], ["β E-Mail π₯·", "β Inv SOS π¦«"])
|
161 |
|
162 |
demo.queue()
|
163 |
demo.launch()
|