Spaces:
Running
Running
TahaFawzyElshrif commited on
Commit ·
e4ad155
1
Parent(s): e71659b
debug
Browse files
Server.py
CHANGED
|
@@ -26,9 +26,10 @@ def get_response(prompt,memory,hf_key,state,user_email,user_name):
|
|
| 26 |
)
|
| 27 |
llm_gpt = ChatHuggingFace(llm=llm_gpt)
|
| 28 |
|
| 29 |
-
rag_model = rag_text_chooser(os.path.join(os.path.dirname(__file__), 'agent' ,'rag', 'rag.xlsx'))
|
| 30 |
print("RAG_PATH ",os.path.join(os.path.dirname(__file__), 'agent' ,'rag', 'rag.xlsx'))
|
| 31 |
|
|
|
|
|
|
|
| 32 |
# update state
|
| 33 |
state["question"] = prompt
|
| 34 |
state["memory"] = memory
|
|
|
|
| 26 |
)
|
| 27 |
llm_gpt = ChatHuggingFace(llm=llm_gpt)
|
| 28 |
|
|
|
|
| 29 |
print("RAG_PATH ",os.path.join(os.path.dirname(__file__), 'agent' ,'rag', 'rag.xlsx'))
|
| 30 |
|
| 31 |
+
rag_model = rag_text_chooser(os.path.join(os.path.dirname(__file__), 'agent' ,'rag', 'rag.xlsx'))
|
| 32 |
+
|
| 33 |
# update state
|
| 34 |
state["question"] = prompt
|
| 35 |
state["memory"] = memory
|