Spaces:
Sleeping
Sleeping
Tafazzul-Nadeeem
commited on
Commit
·
cb42c88
1
Parent(s):
b41cccb
Chatbot ready and deployment checked
Browse files- app.py +0 -1
- last_stable_app_on_hf.py +0 -1
- prompts.py +2 -1
- ~$telist_offers.docx +0 -0
app.py
CHANGED
|
@@ -83,7 +83,6 @@ with gr.Blocks() as demo:
|
|
| 83 |
has_image_url = any("image_url" in item for item in messages[0]["content"])
|
| 84 |
if has_image_url:
|
| 85 |
prescription_text = agent4_get_prescription_text(messages)
|
| 86 |
-
print(f"Prescription Text: {prescription_text}")
|
| 87 |
history.append({"role": "system", "content": prescription_text})
|
| 88 |
|
| 89 |
if message["text"] is not None:
|
|
|
|
| 83 |
has_image_url = any("image_url" in item for item in messages[0]["content"])
|
| 84 |
if has_image_url:
|
| 85 |
prescription_text = agent4_get_prescription_text(messages)
|
|
|
|
| 86 |
history.append({"role": "system", "content": prescription_text})
|
| 87 |
|
| 88 |
if message["text"] is not None:
|
last_stable_app_on_hf.py
CHANGED
|
@@ -83,7 +83,6 @@ with gr.Blocks() as demo:
|
|
| 83 |
has_image_url = any("image_url" in item for item in messages[0]["content"])
|
| 84 |
if has_image_url:
|
| 85 |
prescription_text = agent4_get_prescription_text(messages)
|
| 86 |
-
print(f"Prescription Text: {prescription_text}")
|
| 87 |
history.append({"role": "system", "content": prescription_text})
|
| 88 |
|
| 89 |
if message["text"] is not None:
|
|
|
|
| 83 |
has_image_url = any("image_url" in item for item in messages[0]["content"])
|
| 84 |
if has_image_url:
|
| 85 |
prescription_text = agent4_get_prescription_text(messages)
|
|
|
|
| 86 |
history.append({"role": "system", "content": prescription_text})
|
| 87 |
|
| 88 |
if message["text"] is not None:
|
prompts.py
CHANGED
|
@@ -29,7 +29,8 @@ you had missed any test. If the adds any test, then add it in your previous repl
|
|
| 29 |
knowledge base, even if the user asks for it.
|
| 30 |
2. If you are giving information about the cost of a test or any offers, always
|
| 31 |
mention that the final cost will be available at the time of booking, and may
|
| 32 |
-
vary from the information provided by you.
|
|
|
|
| 33 |
3. If the user asks for a medical advice or diagnosis, politely inform them that
|
| 34 |
you are not a medical professional and cannot provide medical advice.
|
| 35 |
4. Do not add Laboratory specific information which is not present in the
|
|
|
|
| 29 |
knowledge base, even if the user asks for it.
|
| 30 |
2. If you are giving information about the cost of a test or any offers, always
|
| 31 |
mention that the final cost will be available at the time of booking, and may
|
| 32 |
+
vary from the information provided by you. Also mention to website for cost of
|
| 33 |
+
tests and more offers.
|
| 34 |
3. If the user asks for a medical advice or diagnosis, politely inform them that
|
| 35 |
you are not a medical professional and cannot provide medical advice.
|
| 36 |
4. Do not add Laboratory specific information which is not present in the
|
~$telist_offers.docx
ADDED
|
Binary file (162 Bytes). View file
|
|
|