gorkemgoknar commited on
Commit
d014ff6
·
1 Parent(s): ff78175

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -279,9 +279,9 @@ history = {"character": "None", "message_history" : [] }
279
 
280
  interface_full = gr.Interface(fn=greet_stt_to_tts,
281
  inputs=[gr.inputs.Dropdown(personality_choices),
282
- gr.inputs.Audio(source="microphone", type="filepath") ,
283
  "state"],
284
- outputs=["html","state",gr.outputs.Audio(type="file")],
285
  css=css, title="Chat with Your Voice", description=description,article=article ,
286
  live=True)
287
 
@@ -291,7 +291,7 @@ interface_mic = gr.Interface(fn=greet,
291
  gr.inputs.Audio(source="microphone", type="filepath") ,
292
  "text",
293
  "state"],
294
- outputs=["html","state",gr.outputs.Audio(type="file")],
295
  css=css, title="Chat with Your Voice", description=description,article=article )
296
 
297
 
@@ -307,7 +307,7 @@ interface_file= gr.Interface(fn=greet_textonly,
307
  inputs=[gr.inputs.Dropdown(personality_choices),
308
  "text",
309
  "state"],
310
- outputs=["html","state",gr.outputs.Audio(type="file")],
311
  css=css, title="Chat with Uploaded file", description=description,article=article )
312
 
313
 
 
279
 
280
  interface_full = gr.Interface(fn=greet_stt_to_tts,
281
  inputs=[gr.inputs.Dropdown(personality_choices),
282
+ gr.inputs.Audio(source="microphone", type="filepath",streaming=True) ,
283
  "state"],
284
+ outputs=["html","state",gr.outputs.Audio(type="filepath")],
285
  css=css, title="Chat with Your Voice", description=description,article=article ,
286
  live=True)
287
 
 
291
  gr.inputs.Audio(source="microphone", type="filepath") ,
292
  "text",
293
  "state"],
294
+ outputs=["html","state",gr.outputs.Audio(type="filepath")],
295
  css=css, title="Chat with Your Voice", description=description,article=article )
296
 
297
 
 
307
  inputs=[gr.inputs.Dropdown(personality_choices),
308
  "text",
309
  "state"],
310
+ outputs=["html","state",gr.outputs.Audio(type="filepath")],
311
  css=css, title="Chat with Uploaded file", description=description,article=article )
312
 
313