gorkemgoknar commited on
Commit
18afa9d
1 Parent(s): 5e36db2

Update app.py

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