Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -73,13 +73,15 @@ with gr.Blocks() as demo:
|
|
73 |
|
74 |
start_btn.click(fn=start_chat, outputs=status_box)
|
75 |
end_btn.click(fn=finish_chat, outputs=status_box)
|
76 |
-
|
77 |
-
|
|
|
|
|
|
|
78 |
#textbox_output = gr.Textbox(label="Output", elem_id="scrollbox", lines=10)
|
79 |
textbox_output = gr.Markdown(min_height=30, label="robot answer:")
|
80 |
|
81 |
-
|
82 |
-
button = gr.Button("Submit")
|
83 |
|
84 |
# 當按鈕被按下時,呼叫 generate_stream 並更新 textbox_output
|
85 |
button.click(fn=generate_stream, inputs=textbox_input, outputs=[textbox_output, TPS_box])
|
|
|
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:")
|
83 |
|
84 |
+
|
|
|
85 |
|
86 |
# 當按鈕被按下時,呼叫 generate_stream 並更新 textbox_output
|
87 |
button.click(fn=generate_stream, inputs=textbox_input, outputs=[textbox_output, TPS_box])
|