Spaces:
Build error
Build error
Commit
·
21bd29d
1
Parent(s):
e18d294
Update app.py
Browse files
app.py
CHANGED
|
@@ -280,25 +280,25 @@ examples=[['Gandalf','dragon.wav','Who are you sir?',{}]]
|
|
| 280 |
history = {"character": "None", "message_history" : [] }
|
| 281 |
|
| 282 |
interface_full = gr.Interface(fn=greet_stt_to_tts,
|
| 283 |
-
inputs=[gr.
|
| 284 |
-
gr.
|
| 285 |
"state"],
|
| 286 |
-
outputs=["html","state",gr.
|
| 287 |
css=css, title="Chat with Your Voice", description=description,article=article ,
|
| 288 |
live=True)
|
| 289 |
|
| 290 |
|
| 291 |
interface_mic = gr.Interface(fn=greet,
|
| 292 |
-
inputs=[gr.
|
| 293 |
-
gr.
|
| 294 |
"text",
|
| 295 |
"state"],
|
| 296 |
-
outputs=["html","state",gr.
|
| 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.
|
| 302 |
"text",
|
| 303 |
"state"],
|
| 304 |
outputs=["html","state"],
|
|
@@ -306,11 +306,11 @@ interface_text = gr.Interface(fn=greet_textonly,
|
|
| 306 |
|
| 307 |
|
| 308 |
interface_file= gr.Interface(fn=greet,
|
| 309 |
-
inputs=[gr.
|
| 310 |
-
gr.
|
| 311 |
"text",
|
| 312 |
"state"],
|
| 313 |
-
outputs=["html","state",gr.
|
| 314 |
css=css, title="Chat with Uploaded file", description=description,article=article )
|
| 315 |
|
| 316 |
|
|
|
|
| 280 |
history = {"character": "None", "message_history" : [] }
|
| 281 |
|
| 282 |
interface_full = gr.Interface(fn=greet_stt_to_tts,
|
| 283 |
+
inputs=[gr.Dropdown(personality_choices),
|
| 284 |
+
gr.Audio(source="microphone", type="numpy", label="Record Audio", streaming=True) ,
|
| 285 |
"state"],
|
| 286 |
+
outputs=["html","state",gr.Audio(type="filepath")],
|
| 287 |
css=css, title="Chat with Your Voice", description=description,article=article ,
|
| 288 |
live=True)
|
| 289 |
|
| 290 |
|
| 291 |
interface_mic = gr.Interface(fn=greet,
|
| 292 |
+
inputs=[gr.Dropdown(personality_choices),
|
| 293 |
+
gr.Audio(source="microphone", type="filepath") ,
|
| 294 |
"text",
|
| 295 |
"state"],
|
| 296 |
+
outputs=["html","state",gr.Audio(type="filepath")],
|
| 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.Dropdown(personality_choices),
|
| 302 |
"text",
|
| 303 |
"state"],
|
| 304 |
outputs=["html","state"],
|
|
|
|
| 306 |
|
| 307 |
|
| 308 |
interface_file= gr.Interface(fn=greet,
|
| 309 |
+
inputs=[gr.Dropdown(personality_choices),
|
| 310 |
+
gr.Audio(type="filepath") ,
|
| 311 |
"text",
|
| 312 |
"state"],
|
| 313 |
+
outputs=["html","state",gr.Audio(type="filepath")],
|
| 314 |
css=css, title="Chat with Uploaded file", description=description,article=article )
|
| 315 |
|
| 316 |
|