Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
|
|
|
|
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))
|