mojtabaa4 commited on
Commit
d4e46d5
1 Parent(s): 6fe80c5

add application files

Browse files
Files changed (1) hide show
  1. app.py +5 -1
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)