gorkemgoknar commited on
Commit
b162fb8
·
1 Parent(s): 9c9c777

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -12
app.py CHANGED
@@ -191,7 +191,8 @@ article = "<p style='text-align: center'><a href='https://www.linkedin.com/pulse
191
  examples=[['Gandalf','dragon.wav','Who are you sir?',{}]]
192
 
193
  history = {"character": "None", "message_history" : [] }
194
- interface_mic= gr.Interface(fn=greet,
 
195
  inputs=[gr.inputs.Dropdown(personality_choices),
196
  gr.inputs.Audio(source="microphone", type="filepath") ,
197
  "text",
@@ -207,18 +208,9 @@ interface_text = gr.Interface(fn=greet,
207
  outputs=["html","state"],
208
  css=css, title="Chat Text Only", description=description,article=article)
209
 
210
- interface_mic= gr.Interface(fn=greet,
211
- inputs=[gr.inputs.Dropdown(personality_choices),
212
- gr.inputs.Audio(source="microphone", type="filepath") ,
213
- "text",
214
- "state"],
215
- outputs=["html","state",gr.outputs.Audio(type="file")],
216
- css=css, title=title, description=description,article=article )
217
-
218
-
219
  interface_file= gr.Interface.load(greet_textonly,
220
- inputs=[gr.inputs.Dropdown(personality_choices),
221
- gr.inputs.Audio(type="filepath"),
222
  "text",
223
  "state"],
224
  outputs=["html","state",gr.outputs.Audio(type="file")],
 
191
  examples=[['Gandalf','dragon.wav','Who are you sir?',{}]]
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",
 
208
  outputs=["html","state"],
209
  css=css, title="Chat Text Only", description=description,article=article)
210
 
211
+
 
 
 
 
 
 
 
 
212
  interface_file= gr.Interface.load(greet_textonly,
213
+ inputs=[gr.inputs.Dropdown(personality_choices),
 
214
  "text",
215
  "state"],
216
  outputs=["html","state",gr.outputs.Audio(type="file")],