gorkemgoknar commited on
Commit
6f9b769
1 Parent(s): ed7660a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -192,14 +192,13 @@ examples=[['Gandalf','dragon.wav','Who are you sir?',{}]]
192
 
193
  history = {"character": "None", "message_history" : [] }
194
 
195
- interface_file= gr.Interface(fn=greet,
196
  inputs=[gr.inputs.Dropdown(personality_choices),
197
- gr.inputs.Audio(type="filepath"),
198
  "text",
199
  "state"],
200
  outputs=["html","state",gr.outputs.Audio(type="file")],
201
  css=css, title=title, description=description,article=article )
202
 
203
-
204
  if __name__ == "__main__":
205
- interface_file.launch()
 
192
 
193
  history = {"character": "None", "message_history" : [] }
194
 
195
+ interface_mic= gr.Interface(fn=greet,
196
  inputs=[gr.inputs.Dropdown(personality_choices),
197
+ gr.inputs.Audio(source="microphone", type="filepath") ,
198
  "text",
199
  "state"],
200
  outputs=["html","state",gr.outputs.Audio(type="file")],
201
  css=css, title=title, description=description,article=article )
202
 
 
203
  if __name__ == "__main__":
204
+ interface_mic.launch()