larry1129 commited on
Commit
0af3958
·
verified ·
1 Parent(s): 052a135

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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.inputs.Textbox(lines=2, placeholder="请输入指令...", label="Instruction"),
97
- gr.inputs.Textbox(lines=2, placeholder="如果有额外输入,请在此填写...", label="Input (可选)")
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()