Update app.py
Browse files
app.py
CHANGED
|
@@ -32,9 +32,9 @@ data.add_faiss_index("embeddings", custom_index=index)
|
|
| 32 |
|
| 33 |
#question = "How can I reverse Diabetes?"
|
| 34 |
|
| 35 |
-
SYS_PROMPT = """You are an assistant for answering questions.
|
| 36 |
You are given the extracted parts of document, a question and history of questions and answers . Provide a brief conversational answer.
|
| 37 |
-
If you do not know the answer, just say "I do not know." Do not make up an answer. Don't repeat the SYS_PROMPT or say that you are referring to document."""
|
| 38 |
# Provides context of how to answer the question
|
| 39 |
|
| 40 |
#llm_model = "TheBloke/TinyLlama-1.1B-Chat-v1.0-GGUF", tinyllama-1.1b-chat-v1.0.Q5_K_M.gguf
|
|
@@ -179,4 +179,5 @@ print("check14")
|
|
| 179 |
#memory_panda = pd.DataFrame(historylog)
|
| 180 |
#Logfile = Dataset.from_pandas(memory_panda)
|
| 181 |
#Logfile.push_to_hub("Namitg02/Logfile",token = HF_TOKEN)
|
| 182 |
-
demo.launch(
|
|
|
|
|
|
| 32 |
|
| 33 |
#question = "How can I reverse Diabetes?"
|
| 34 |
|
| 35 |
+
SYS_PROMPT = """You are an assistant for answering questions like a medical person.
|
| 36 |
You are given the extracted parts of document, a question and history of questions and answers . Provide a brief conversational answer.
|
| 37 |
+
If you do not know the answer, just say "I do not know." Do not make up an answer. Don't repeat the SYS_PROMPT or say that you are referring to document or an article."""
|
| 38 |
# Provides context of how to answer the question
|
| 39 |
|
| 40 |
#llm_model = "TheBloke/TinyLlama-1.1B-Chat-v1.0-GGUF", tinyllama-1.1b-chat-v1.0.Q5_K_M.gguf
|
|
|
|
| 179 |
#memory_panda = pd.DataFrame(historylog)
|
| 180 |
#Logfile = Dataset.from_pandas(memory_panda)
|
| 181 |
#Logfile.push_to_hub("Namitg02/Logfile",token = HF_TOKEN)
|
| 182 |
+
demo.launch()
|
| 183 |
+
#demo.launch(auth=("namit", "wolfmagic"))
|