tomerk commited on
Commit
b590546
·
verified ·
1 Parent(s): c839051

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -6
app.py CHANGED
@@ -260,11 +260,13 @@ def stop_capture_func():
260
 
261
  # Gradio interface
262
  with gr.Blocks(title="Conntour", fill_height=True) as demo:
263
- chatbot = gr.Chatbot(label="Events", bubble_full_width=False, avatar_images=AVATARS)
264
- prompt = gr.Textbox(label="Enter your prompt alert")
265
- start_btn = gr.Button("Start")
266
- stop_btn = gr.Button("Stop")
267
- start_btn.click(analyze_stream, inputs=[prompt, chatbot], outputs=[chatbot], queue=True)
268
- stop_btn.click(stop_capture_func)
 
 
269
 
270
  demo.launch(favicon_path='favicon.ico', auth=(user_name, password))
 
260
 
261
  # Gradio interface
262
  with gr.Blocks(title="Conntour", fill_height=True) as demo:
263
+ with gr.Row():
264
+ with gr.Column():
265
+ chatbot = gr.Chatbot(label="Events", bubble_full_width=False, avatar_images=AVATARS)
266
+ prompt = gr.Textbox(label="Enter your prompt alert")
267
+ start_btn = gr.Button("Start")
268
+ stop_btn = gr.Button("Stop")
269
+ start_btn.click(analyze_stream, inputs=[prompt, chatbot], outputs=[chatbot], queue=True)
270
+ stop_btn.click(stop_capture_func)
271
 
272
  demo.launch(favicon_path='favicon.ico', auth=(user_name, password))