Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -117,7 +117,7 @@ def process_query():
|
|
| 117 |
classification = SESSIONS[session_id].get('classification')
|
| 118 |
category = classification['category']
|
| 119 |
endpoint_url = API_ENDPOINTS.get(category)
|
| 120 |
-
response = requests.post(endpoint_url, json={"query": query}) or requests.post(endpoint_url, data={"query": query}) or requests.post(endpoint_url, files={"query": query})
|
| 121 |
del SESSIONS[session_id]
|
| 122 |
print(f"Session {session_id} closed.")
|
| 123 |
return jsonify({
|
|
|
|
| 117 |
classification = SESSIONS[session_id].get('classification')
|
| 118 |
category = classification['category']
|
| 119 |
endpoint_url = API_ENDPOINTS.get(category)
|
| 120 |
+
response = requests.post(endpoint_url, json={"query": query}) or requests.post(endpoint_url, data={"query": query}) or requests.post(endpoint_url, files={"query": query})
|
| 121 |
del SESSIONS[session_id]
|
| 122 |
print(f"Session {session_id} closed.")
|
| 123 |
return jsonify({
|