Spaces:
Runtime error
Runtime error
add application files
Browse files
app.py
CHANGED
@@ -2,6 +2,10 @@ import os
|
|
2 |
import gradio as gr
|
3 |
from model.controller import Controller
|
4 |
|
|
|
|
|
|
|
|
|
5 |
# Change working directory to /home/user/app
|
6 |
os.chdir("/home/user/app")
|
7 |
|
@@ -36,4 +40,4 @@ with gr.Blocks() as interface:
|
|
36 |
send_button.click(chat_update, [user_input, chatbot], [chatbot, user_input])
|
37 |
|
38 |
# Launch the Gradio interface
|
39 |
-
interface.launch()
|
|
|
2 |
import gradio as gr
|
3 |
from model.controller import Controller
|
4 |
|
5 |
+
|
6 |
+
# Install unrar and update the package list
|
7 |
+
os.system('apt-get update && apt-get install -y unrar')
|
8 |
+
|
9 |
# Change working directory to /home/user/app
|
10 |
os.chdir("/home/user/app")
|
11 |
|
|
|
40 |
send_button.click(chat_update, [user_input, chatbot], [chatbot, user_input])
|
41 |
|
42 |
# Launch the Gradio interface
|
43 |
+
interface.launch(share=True)
|