Update app.py
Browse files
app.py
CHANGED
@@ -85,10 +85,6 @@ with gr.Blocks() as demo:
|
|
85 |
question = gr.Textbox(label="🌿 植物问题", lines=4, placeholder="请输入植物相关的问题 😊")
|
86 |
answer_box = gr.Textbox(label="🤖 回答建议", lines=8, interactive=False)
|
87 |
send_btn = gr.Button("发送")
|
88 |
-
|
89 |
send_btn.click(fn=generate_answer, inputs=question, outputs=answer_box)
|
90 |
-
|
91 |
# 启动后台线程更新数据
|
92 |
-
|
93 |
-
|
94 |
-
demo.launch()
|
|
|
85 |
question = gr.Textbox(label="🌿 植物问题", lines=4, placeholder="请输入植物相关的问题 😊")
|
86 |
answer_box = gr.Textbox(label="🤖 回答建议", lines=8, interactive=False)
|
87 |
send_btn = gr.Button("发送")
|
|
|
88 |
send_btn.click(fn=generate_answer, inputs=question, outputs=answer_box)
|
|
|
89 |
# 启动后台线程更新数据
|
90 |
+
demo.launch()
|
|
|
|