KingNish commited on
Commit
2965d28
1 Parent(s): 47f07ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -2
app.py CHANGED
@@ -505,10 +505,25 @@ with gr.Blocks() as voice:
505
  fn=respond,
506
  inputs=[input],
507
  outputs=[output], live=True)
508
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
509
  with gr.Blocks(theme=theme, css="footer {visibility: hidden}textbox{resize:none}", title="GPT 4o DEMO") as demo:
510
  gr.Markdown("# OpenGPT 4o")
511
- gr.TabbedInterface([img, voice], ['💬 SuperChat','🗣️ Voice Chat', ])
512
 
513
  demo.queue(max_size=200)
514
  demo.launch()
 
505
  fn=respond,
506
  inputs=[input],
507
  outputs=[output], live=True)
508
+
509
+ with gr.Blocks() as voice2:
510
+ with gr.Row():
511
+ input = gr.Audio(label="Voice Chat", sources="microphone", type="filepath", waveform_options=False)
512
+ output = gr.Audio(label="OpenGPT 4o", type="filepath",
513
+ interactive=False,
514
+ autoplay=True,
515
+ elem_classes="audio")
516
+ gr.Interface(
517
+ fn=respond,
518
+ inputs=[input],
519
+ outputs=[output], live=True)
520
+
521
+ with gr.Blocks() as video:
522
+ gr.Markdown(" # Coming Soon")
523
+
524
  with gr.Blocks(theme=theme, css="footer {visibility: hidden}textbox{resize:none}", title="GPT 4o DEMO") as demo:
525
  gr.Markdown("# OpenGPT 4o")
526
+ gr.TabbedInterface([img, voice, voice2, video], ['💬 SuperChat','🗣️ Voice Chat', '🗣️ Voice Chat 2', '📸 Video Chat'])
527
 
528
  demo.queue(max_size=200)
529
  demo.launch()