Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -78,11 +78,13 @@ with gr.Blocks() as demo:
|
|
78 |
button = gr.Button("Submit")
|
79 |
# 右邊:Prompt 輸入與 Markdown 輸出
|
80 |
with gr.Column(scale=3):
|
81 |
-
start_btn = gr.Button("開始對話")
|
82 |
-
end_btn = gr.Button("結束對話")
|
83 |
with gr.Row():
|
84 |
-
|
85 |
-
|
|
|
|
|
|
|
|
|
86 |
textbox_output = gr.Markdown(label="robot answer:", elem_id="scroll_output")
|
87 |
|
88 |
start_btn.click(fn=start_chat, outputs=status_box)
|
|
|
78 |
button = gr.Button("Submit")
|
79 |
# 右邊:Prompt 輸入與 Markdown 輸出
|
80 |
with gr.Column(scale=3):
|
|
|
|
|
81 |
with gr.Row():
|
82 |
+
with gr.Column(scale=1):
|
83 |
+
start_btn = gr.Button("開始對話")
|
84 |
+
end_btn = gr.Button("結束對話")
|
85 |
+
with gr.Column(scale=3):
|
86 |
+
status_box = gr.Textbox(label="狀態", interactive=False)
|
87 |
+
TPS_box = gr.Textbox(label="TPS", interactive=False)
|
88 |
textbox_output = gr.Markdown(label="robot answer:", elem_id="scroll_output")
|
89 |
|
90 |
start_btn.click(fn=start_chat, outputs=status_box)
|