Spaces:
Build error
Build error
Commit
·
e18d294
1
Parent(s):
80ad420
Update app.py
Browse files
app.py
CHANGED
@@ -281,7 +281,7 @@ history = {"character": "None", "message_history" : [] }
|
|
281 |
|
282 |
interface_full = gr.Interface(fn=greet_stt_to_tts,
|
283 |
inputs=[gr.inputs.Dropdown(personality_choices),
|
284 |
-
gr.inputs.Audio(source="microphone", type="
|
285 |
"state"],
|
286 |
outputs=["html","state",gr.outputs.Audio(type="filepath")],
|
287 |
css=css, title="Chat with Your Voice", description=description,article=article ,
|
@@ -297,7 +297,7 @@ interface_mic = gr.Interface(fn=greet,
|
|
297 |
css=css, title="Chat with Your Voice", description=description,article=article )
|
298 |
|
299 |
|
300 |
-
interface_text = gr.Interface(fn=
|
301 |
inputs=[gr.inputs.Dropdown(personality_choices),
|
302 |
"text",
|
303 |
"state"],
|
@@ -305,7 +305,7 @@ interface_text = gr.Interface(fn=greet,
|
|
305 |
css=css, title="Chat Text Only", description=description,article=article)
|
306 |
|
307 |
|
308 |
-
interface_file= gr.Interface(fn=
|
309 |
inputs=[gr.inputs.Dropdown(personality_choices),
|
310 |
gr.inputs.Audio(type="filepath") ,
|
311 |
"text",
|
|
|
281 |
|
282 |
interface_full = gr.Interface(fn=greet_stt_to_tts,
|
283 |
inputs=[gr.inputs.Dropdown(personality_choices),
|
284 |
+
gr.inputs.Audio(source="microphone", type="numpy",streaming=True) ,
|
285 |
"state"],
|
286 |
outputs=["html","state",gr.outputs.Audio(type="filepath")],
|
287 |
css=css, title="Chat with Your Voice", description=description,article=article ,
|
|
|
297 |
css=css, title="Chat with Your Voice", description=description,article=article )
|
298 |
|
299 |
|
300 |
+
interface_text = gr.Interface(fn=greet_textonly,
|
301 |
inputs=[gr.inputs.Dropdown(personality_choices),
|
302 |
"text",
|
303 |
"state"],
|
|
|
305 |
css=css, title="Chat Text Only", description=description,article=article)
|
306 |
|
307 |
|
308 |
+
interface_file= gr.Interface(fn=greet,
|
309 |
inputs=[gr.inputs.Dropdown(personality_choices),
|
310 |
gr.inputs.Audio(type="filepath") ,
|
311 |
"text",
|