Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -93,8 +93,8 @@ def generate_response(instruction, input_text):
|
|
93 |
iface = gr.Interface(
|
94 |
fn=generate_response,
|
95 |
inputs=[
|
96 |
-
gr.
|
97 |
-
gr.
|
98 |
],
|
99 |
outputs="text",
|
100 |
title="WooWoof AI 交互式聊天",
|
@@ -102,5 +102,6 @@ iface = gr.Interface(
|
|
102 |
allow_flagging="never"
|
103 |
)
|
104 |
|
|
|
105 |
# 启动 Gradio 接口
|
106 |
iface.launch()
|
|
|
93 |
iface = gr.Interface(
|
94 |
fn=generate_response,
|
95 |
inputs=[
|
96 |
+
gr.Textbox(lines=2, placeholder="请输入指令...", label="Instruction"),
|
97 |
+
gr.Textbox(lines=2, placeholder="如果有额外输入,请在此填写...", label="Input (可选)")
|
98 |
],
|
99 |
outputs="text",
|
100 |
title="WooWoof AI 交互式聊天",
|
|
|
102 |
allow_flagging="never"
|
103 |
)
|
104 |
|
105 |
+
|
106 |
# 启动 Gradio 接口
|
107 |
iface.launch()
|