shoom013 commited on
Commit
9717d8b
·
verified ·
1 Parent(s): ea004c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -25,7 +25,8 @@ from io import StringIO
25
  last = 0
26
  CHROMA_DATA_PATH = "chroma_data/"
27
  EMBED_MODEL = "sentence-transformers/all-MiniLM-L6-v2" #"BAAI/bge-m3"
28
- LLM_NAME = "mistralai/Mistral-Nemo-Instruct-2407"
 
29
  # all-MiniLM-L6-v2
30
  CHUNK_SIZE = 800
31
  CHUNK_OVERLAP = 50
@@ -171,8 +172,8 @@ def rag(input_text, history, jezik, file):
171
  # if (o_jezik!='N/A'):
172
  # input_text += " - odgovori " + o_jezik + "."
173
 
174
- response = query_engine.query(input_text)
175
- # response = chat_engine.chat(input_text).response
176
  return response
177
  # Interface
178
  # gr.Textbox(label="Pitanje:", lines=6),
 
25
  last = 0
26
  CHROMA_DATA_PATH = "chroma_data/"
27
  EMBED_MODEL = "sentence-transformers/all-MiniLM-L6-v2" #"BAAI/bge-m3"
28
+ #LLM_NAME = "mistralai/Mistral-Nemo-Instruct-2407"
29
+ LLM_NAME = "W4D/YugoGPT-7B-Instruct-GGUF"
30
  # all-MiniLM-L6-v2
31
  CHUNK_SIZE = 800
32
  CHUNK_OVERLAP = 50
 
172
  # if (o_jezik!='N/A'):
173
  # input_text += " - odgovori " + o_jezik + "."
174
 
175
+ # response = query_engine.query(input_text)
176
+ response = chat_engine.chat(input_text).response
177
  return response
178
  # Interface
179
  # gr.Textbox(label="Pitanje:", lines=6),