Spaces:
Configuration error
Configuration error
Update app.py
Browse files
app.py
CHANGED
@@ -252,7 +252,7 @@ gr.Interface(
|
|
252 |
inputs=[
|
253 |
gr.Textbox(lines=1, label = "请填写您的OpenAI-API-key"),
|
254 |
gr.Audio(source="upload", label = "请上传您喜欢的声音(wav文件)", type="filepath"),
|
255 |
-
gr.Audio(source="microphone", label = "请用语音上传您喜欢的声音,语音和文件上传二选一即可", type="filepath"),
|
256 |
gr.Audio(source="microphone", label = "请开始对话吧", type="filepath"),
|
257 |
gr.Radio(["TOEFL", "Therapist", "Alice"], label="TOEFL Examiner, Therapist Tina, or Assistant Alice?"),
|
258 |
],
|
|
|
252 |
inputs=[
|
253 |
gr.Textbox(lines=1, label = "请填写您的OpenAI-API-key"),
|
254 |
gr.Audio(source="upload", label = "请上传您喜欢的声音(wav文件)", type="filepath"),
|
255 |
+
gr.Audio(source="microphone", streaming = True, label = "请用语音上传您喜欢的声音,语音和文件上传二选一即可", type="filepath"),
|
256 |
gr.Audio(source="microphone", label = "请开始对话吧", type="filepath"),
|
257 |
gr.Radio(["TOEFL", "Therapist", "Alice"], label="TOEFL Examiner, Therapist Tina, or Assistant Alice?"),
|
258 |
],
|