dineth554 commited on
Commit
1bf90ea
β€’
1 Parent(s): 7074c11

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -1,5 +1,8 @@
1
  import gradio as gr
2
 
 
 
 
3
  # Import modules from other files
4
  from chatbot import chatbot, model_inference, BOT_AVATAR, EXAMPLES, model_selector, decoding_strategy, temperature, max_new_tokens, repetition_penalty, top_p
5
  from live_chat import videochat
@@ -267,7 +270,7 @@ with gr.Blocks() as video:
267
  # Main application block
268
  with gr.Blocks(theme=theme, title="OpenGPT 4o DEMO") as demo:
269
  gr.Markdown("# OpenGPT 4o")
270
- gr.TabbedInterface([chat, voice, livechat, image, video], ['πŸ’¬ SuperChat','πŸ—£οΈ Voice Chat','πŸ“Έ Live Chat', 'πŸ–ΌοΈ Image Engine', 'πŸŽ₯ Video Engine'])
271
 
272
  demo.queue(max_size=300)
273
  demo.launch()
 
1
  import gradio as gr
2
 
3
+ # Install necessary libraries
4
+ os.system('pip install streamlit torch onnxruntime transformers sentencepiece pydub soxr edge-tts requests beautifulsoup4')
5
+
6
  # Import modules from other files
7
  from chatbot import chatbot, model_inference, BOT_AVATAR, EXAMPLES, model_selector, decoding_strategy, temperature, max_new_tokens, repetition_penalty, top_p
8
  from live_chat import videochat
 
270
  # Main application block
271
  with gr.Blocks(theme=theme, title="OpenGPT 4o DEMO") as demo:
272
  gr.Markdown("# OpenGPT 4o")
273
+ gr.TabbedInterface([chat, voice, livechat, image, video], ['πŸ’¬ SuperChat'])
274
 
275
  demo.queue(max_size=300)
276
  demo.launch()