gorkemgoknar commited on
Commit
9098529
1 Parent(s): f6806ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -195,21 +195,21 @@ examples=[['Gandalf','dragon.wav','Who are you sir?',{}]]
195
  history = {"character": "None", "message_history" : [] }
196
 
197
  interface_mic= gr.Interface(fn=greet,
198
- inputs=[gr.inputs.Dropdown(personality_choices),
199
- gr.inputs.Audio(source="microphone", type="filepath") ,
200
  "text",
201
  "state"],
202
- outputs=["html","state",gr.outputs.Audio(type="file")],
203
  css=css, title=title, description=description,article=article )
204
  interface_file= gr.Interface(fn=greet,
205
- inputs=[gr.inputs.Dropdown(personality_choices),
206
- gr.inputs.Audio(type="filepath"),
207
  "text",
208
  "state"],
209
- outputs=["html","state",gr.outputs.Audio(type="file")],
210
  css=css, title=title, description=description,article=article )
211
  interface_text= gr.Interface(fn=greet_textonly,
212
- inputs=[gr.inputs.Dropdown(personality_choices),
213
  "text",
214
  "state"],
215
  outputs=["html","state"],
 
195
  history = {"character": "None", "message_history" : [] }
196
 
197
  interface_mic= gr.Interface(fn=greet,
198
+ inputs=[gr.components.Dropdown(personality_choices),
199
+ gr.components.Audio(source="microphone", type="filepath") ,
200
  "text",
201
  "state"],
202
+ outputs=["html","state",gr.components.Audio(type="file")],
203
  css=css, title=title, description=description,article=article )
204
  interface_file= gr.Interface(fn=greet,
205
+ inputs=[gr.components.Dropdown(personality_choices),
206
+ gr.components.Audio(type="filepath"),
207
  "text",
208
  "state"],
209
+ outputs=["html","state",gr.components.Audio(type="file")],
210
  css=css, title=title, description=description,article=article )
211
  interface_text= gr.Interface(fn=greet_textonly,
212
+ inputs=[gr.components.Dropdown(personality_choices),
213
  "text",
214
  "state"],
215
  outputs=["html","state"],