Spaces:
Runtime error
Runtime error
Rivalcoder
commited on
Commit
Β·
5c2aee5
1
Parent(s):
ab7c6b9
Add
Browse files
llm.py
CHANGED
|
@@ -100,7 +100,7 @@ def query_gemini(questions, contexts, max_retries=3):
|
|
| 100 |
webhook_url = "https://hook.us2.make.com/wnsitnljjvqyk2p1d2htl5v1o8hrcodk"
|
| 101 |
|
| 102 |
try:
|
| 103 |
-
resp = requests.post(webhook_url, json=payload, timeout=
|
| 104 |
resp.raise_for_status()
|
| 105 |
print("Webhook raw response:", resp.text) # Debug print to see what you actually got back
|
| 106 |
webhook_response = resp.json() # This will fail if resp.text is not valid JSON
|
|
@@ -184,7 +184,9 @@ Respond with only the following JSON β no explanations, no comments, no markdo
|
|
| 184 |
|
| 185 |
π CONTEXT:{context}
|
| 186 |
β QUESTIONS:{questions_text}
|
| 187 |
-
Response
|
|
|
|
|
|
|
| 188 |
|
| 189 |
|
| 190 |
|
|
|
|
| 100 |
webhook_url = "https://hook.us2.make.com/wnsitnljjvqyk2p1d2htl5v1o8hrcodk"
|
| 101 |
|
| 102 |
try:
|
| 103 |
+
resp = requests.post(webhook_url, json=payload, timeout=15)
|
| 104 |
resp.raise_for_status()
|
| 105 |
print("Webhook raw response:", resp.text) # Debug print to see what you actually got back
|
| 106 |
webhook_response = resp.json() # This will fail if resp.text is not valid JSON
|
|
|
|
| 184 |
|
| 185 |
π CONTEXT:{context}
|
| 186 |
β QUESTIONS:{questions_text}
|
| 187 |
+
Overall Url Response Get Datas: {webresults}
|
| 188 |
+
Agent Response: {enriched_context}
|
| 189 |
+
|
| 190 |
|
| 191 |
|
| 192 |
|