Update app.py
Browse files
app.py
CHANGED
|
@@ -231,7 +231,7 @@ async def ask_website(url: str, question: str):
|
|
| 231 |
visible_text = visible_text[:7500] + "..."
|
| 232 |
|
| 233 |
# Construct a prompt for the chat model
|
| 234 |
-
prompt = f"Based on the following text, answer this question in
|
| 235 |
|
| 236 |
# Use chat model to get the answer
|
| 237 |
with WEBS() as webs:
|
|
|
|
| 231 |
visible_text = visible_text[:7500] + "..."
|
| 232 |
|
| 233 |
# Construct a prompt for the chat model
|
| 234 |
+
prompt = f"Based on the following text, answer this question in Paragraph: [QUESTION] {question}\n\n[TEXT] {visible_text}"
|
| 235 |
|
| 236 |
# Use chat model to get the answer
|
| 237 |
with WEBS() as webs:
|