raghavNCI
commited on
Commit
·
2ad31e1
1
Parent(s):
d229ca3
changes v8
Browse files- question.py +2 -2
question.py
CHANGED
@@ -33,9 +33,9 @@ async def ask_question(input: QuestionInput):
|
|
33 |
query_string = " AND ".join(f'"{kw}"' for kw in keywords[:7])
|
34 |
encoded_query = quote_plus(query_string)
|
35 |
|
36 |
-
print("Query string",
|
37 |
|
38 |
-
gnews_url = f"https://gnews.io/api/v4/search?q={
|
39 |
|
40 |
print("GNEWS URL", gnews_url)
|
41 |
|
|
|
33 |
query_string = " AND ".join(f'"{kw}"' for kw in keywords[:7])
|
34 |
encoded_query = quote_plus(query_string)
|
35 |
|
36 |
+
print("Query string", encoded_query)
|
37 |
|
38 |
+
gnews_url = f"https://gnews.io/api/v4/search?q={encoded_query}&lang=en&max=3&expand=content&token={GNEWS_API_KEY}"
|
39 |
|
40 |
print("GNEWS URL", gnews_url)
|
41 |
|