Update file_viewer_panel.py
Browse files- file_viewer_panel.py +1 -5
file_viewer_panel.py
CHANGED
|
@@ -26,11 +26,7 @@ def file_viewer_dashboard(nickname_input):
|
|
| 26 |
return text, text
|
| 27 |
|
| 28 |
def handle_chat(query, text):
|
| 29 |
-
prompt = f"Use this document to answer:
|
| 30 |
-
|
| 31 |
-
{text}
|
| 32 |
-
|
| 33 |
-
Question: {query}"
|
| 34 |
return [(query, call_llm(prompt))]
|
| 35 |
|
| 36 |
def make_accessible_version(text):
|
|
|
|
| 26 |
return text, text
|
| 27 |
|
| 28 |
def handle_chat(query, text):
|
| 29 |
+
prompt = f"Use this document to answer:\n\n{text}\n\nQuestion: {query}"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
return [(query, call_llm(prompt))]
|
| 31 |
|
| 32 |
def make_accessible_version(text):
|