mojtabaa4 commited on
Commit
6c9fca2
1 Parent(s): 1c8b727

add application files

Browse files
Files changed (2) hide show
  1. app.py +0 -3
  2. model/chat.py +3 -3
app.py CHANGED
@@ -3,9 +3,6 @@ import gradio as gr
3
  from model.controller import Controller
4
  import zipfile
5
 
6
- # # Install unrar-free and make it available for rarfile to use
7
- # os.system('apt-get update && apt-get install -y unrar-free')
8
-
9
  # Change working directory to /home/user/app
10
  os.chdir("/home/user/app")
11
 
 
3
  from model.controller import Controller
4
  import zipfile
5
 
 
 
 
6
  # Change working directory to /home/user/app
7
  os.chdir("/home/user/app")
8
 
model/chat.py CHANGED
@@ -18,7 +18,7 @@ class Chat:
18
  info_list = self.rag_handler.get_information(message)
19
  prompt = self.prompt_handler.get_prompt(message, info_list)
20
 
21
- # response = self.llm.get_LLM_response(prompt=prompt)
22
 
23
- # self.response_history.append(response)
24
- return prompt
 
18
  info_list = self.rag_handler.get_information(message)
19
  prompt = self.prompt_handler.get_prompt(message, info_list)
20
 
21
+ response = self.llm.get_LLM_response(prompt=prompt)
22
 
23
+ self.response_history.append(response)
24
+ return response