hsienchen commited on
Commit
27dba5b
β€’
1 Parent(s): b3c6c9d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
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("## πŸ‘» Workflow Genie ##")
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,11 +132,11 @@ with gr.Blocks() as app1:
132
 
133
  with gr.Blocks() as app2:
134
  with gr.Column():
135
- gr.Markdown("## πŸ₯· Stock-Out Scarebot ##")
136
  gr.Markdown("```Win+Screenshot, paste ERP Inv ⌨ screenshot here...```")
137
- image_box = gr.Image(label="ERP/Inventory 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,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], ["To-Dos", "SOS"])
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()