Spaces:
Runtime error
Runtime error
Kajise Org
commited on
Commit
·
91d5f3f
1
Parent(s):
7966397
Limit gathered results to 3 due to model limitations.
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ def search_ddg(question: str):
|
|
42 |
output_string: str = ""
|
43 |
|
44 |
for element in result_texts:
|
45 |
-
if len(results) <
|
46 |
text_content = element.get_text()
|
47 |
results.append(text_content)
|
48 |
else:
|
|
|
42 |
output_string: str = ""
|
43 |
|
44 |
for element in result_texts:
|
45 |
+
if len(results) < 3:
|
46 |
text_content = element.get_text()
|
47 |
results.append(text_content)
|
48 |
else:
|