gorkemgoknar commited on
Commit
8c70192
·
1 Parent(s): edf6483

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -103,7 +103,7 @@ MODEL_NAME= "tts_models/multilingual/multi-dataset/your_tts"
103
 
104
 
105
 
106
- def greet(character,speaker_wav,message,history):
107
 
108
  #gradios set_state/get_state had problems on embedded html!
109
  history = history or {"character": character, "message_history" : [] }
@@ -157,7 +157,7 @@ examples=[['Gandalf','Hello','dragon.wav']]
157
  history = {"character": "None", "message_history" : [] }
158
  interface= gr.Interface(fn=greet,
159
  inputs=[gr.inputs.Dropdown(personality_choices),gr.inputs.Audio(source="microphone", type="filepath") ,"text", "state"],
160
- outputs=[gr.outputs.Audio(type="filepath"),"html","state"],
161
  css=css, title=title, description=description,article=article )
162
 
163
 
 
103
 
104
 
105
 
106
+ def greet(character,your_voice,message,history):
107
 
108
  #gradios set_state/get_state had problems on embedded html!
109
  history = history or {"character": character, "message_history" : [] }
 
157
  history = {"character": "None", "message_history" : [] }
158
  interface= gr.Interface(fn=greet,
159
  inputs=[gr.inputs.Dropdown(personality_choices),gr.inputs.Audio(source="microphone", type="filepath") ,"text", "state"],
160
+ outputs=[gr.outputs.Audio(type="file"),"html","state"],
161
  css=css, title=title, description=description,article=article )
162
 
163