hra commited on
Commit
5baf69c
·
1 Parent(s): c234199

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -198,12 +198,12 @@ with gr.Blocks() as demo:
198
  btn = gr.Button("Refresh")
199
  with gr.Row() as row:
200
  with gr.Column():
201
- output_image = gr.components.Image(label="Tech Radar",value=open('lasttechradar.png', 'wb').write(requests.get('https://storage.googleapis.com/trends_chrome_extension_bucket/lasttechradar.png').content))
202
  with gr.Column():
203
- outputMck = gr.Textbox(placeholder=value1, lines=1,label='McKinsey View')
204
- outputBcg = gr.Textbox(placeholder=value2, lines=1,label='BCG View')
205
- outputBain = gr.Textbox(placeholder=value3, lines=1,label='Bain View')
206
- outputAcc = gr.Textbox(placeholder=value4, lines=1,label='Accenture View')
207
  with gr.Row() as row:
208
  with gr.Column():
209
  outputdesc = gr.Textbox(placeholder=value5, lines=1,label='Description')
@@ -214,4 +214,4 @@ with gr.Blocks() as demo:
214
  btn.click(getstuff, inputs=[textboxopenapi],outputs=[output_image,outputMck,outputBcg,outputBain,outputAcc,outputdesc,outputclusters])
215
 
216
 
217
- demo.launch(debug=True)
 
198
  btn = gr.Button("Refresh")
199
  with gr.Row() as row:
200
  with gr.Column():
201
+ output_image = gr.components.Image(label="Tech Radar",value='lasttechradar.png',every=60)
202
  with gr.Column():
203
+ outputMck = gr.Textbox(placeholder=value1, lines=1,label='McKinsey View',every=60)
204
+ outputBcg = gr.Textbox(placeholder=value2, lines=1,label='BCG View',every=60)
205
+ outputBain = gr.Textbox(placeholder=value3, lines=1,label='Bain View',every=60)
206
+ outputAcc = gr.Textbox(placeholder=value4, lines=1,label='Accenture View',every=60)
207
  with gr.Row() as row:
208
  with gr.Column():
209
  outputdesc = gr.Textbox(placeholder=value5, lines=1,label='Description')
 
214
  btn.click(getstuff, inputs=[textboxopenapi],outputs=[output_image,outputMck,outputBcg,outputBain,outputAcc,outputdesc,outputclusters])
215
 
216
 
217
+ demo.queue().launch(debug=True)