Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -65,18 +65,18 @@ def generate_stream(prompt):
|
|
65 |
with gr.Blocks() as demo:
|
66 |
gr.Markdown("## 🧠 OpenVINO Streaming Demo with Gradio Textbox")
|
67 |
|
68 |
-
with gr.Row():
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
|
74 |
start_btn.click(fn=start_chat, outputs=status_box)
|
75 |
end_btn.click(fn=finish_chat, outputs=status_box)
|
76 |
|
77 |
-
with gr.Row():
|
78 |
-
|
79 |
-
|
80 |
|
81 |
#textbox_output = gr.Textbox(label="Output", elem_id="scrollbox", lines=10)
|
82 |
textbox_output = gr.Markdown(min_height=30, label="robot answer:")
|
|
|
65 |
with gr.Blocks() as demo:
|
66 |
gr.Markdown("## 🧠 OpenVINO Streaming Demo with Gradio Textbox")
|
67 |
|
68 |
+
#with gr.Row():
|
69 |
+
start_btn = gr.Button("開始對話")
|
70 |
+
end_btn = gr.Button("結束對話")
|
71 |
+
status_box = gr.Textbox(label="狀態", interactive=False)
|
72 |
+
TPS_box = gr.Textbox(label="TPS", interactive=False)
|
73 |
|
74 |
start_btn.click(fn=start_chat, outputs=status_box)
|
75 |
end_btn.click(fn=finish_chat, outputs=status_box)
|
76 |
|
77 |
+
#with gr.Row():
|
78 |
+
textbox_input = gr.Textbox(label="Prompt", lines=1, placeholder="Enter prompt here...")
|
79 |
+
button = gr.Button("Submit")
|
80 |
|
81 |
#textbox_output = gr.Textbox(label="Output", elem_id="scrollbox", lines=10)
|
82 |
textbox_output = gr.Markdown(min_height=30, label="robot answer:")
|