Kevin676 commited on
Commit
1ae52a4
1 Parent(s): 5bb3d73

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -268,13 +268,13 @@ with block:
268
 
269
  btn = gr.Button("开始对话吧")
270
 
271
- text = gr.Textbox(lines=5, label="Raven的回答")
272
 
273
- btn.click(evaluate, [inp1, inp2], [text])
274
 
275
  with gr.Box():
276
  with gr.Row().style(mobile_collapse=False, equal_height=True):
277
- inp3 = text
278
  inp4 = gr.Audio(source="upload", label = "请上传您喜欢的声音(wav/mp3文件, max. 30mb)", type="filepath")
279
  inp5 = gr.Audio(source="microphone", type="filepath", label = '请用麦克风上传您喜欢的声音,与文件上传二选一即可')
280
 
 
268
 
269
  btn = gr.Button("开始对话吧")
270
 
271
+ texts = gr.Textbox(lines=5, label="Raven的回答")
272
 
273
+ btn.click(evaluate, [inp1, inp2], [texts])
274
 
275
  with gr.Box():
276
  with gr.Row().style(mobile_collapse=False, equal_height=True):
277
+ inp3 = texts
278
  inp4 = gr.Audio(source="upload", label = "请上传您喜欢的声音(wav/mp3文件, max. 30mb)", type="filepath")
279
  inp5 = gr.Audio(source="microphone", type="filepath", label = '请用麦克风上传您喜欢的声音,与文件上传二选一即可')
280