Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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'
|
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()
|