Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
update
Browse files
app.py
CHANGED
|
@@ -50,8 +50,8 @@ def respond(
|
|
| 50 |
"max_tokens": 32768
|
| 51 |
}
|
| 52 |
|
| 53 |
-
print(f"[INFO] process user msg...")
|
| 54 |
-
print(f"[INFO] userMsg: {message}")
|
| 55 |
|
| 56 |
try:
|
| 57 |
with requests.post(API_URL, headers=headers, json=data, stream=True) as r:
|
|
@@ -74,7 +74,7 @@ def respond(
|
|
| 74 |
yield current_response
|
| 75 |
except json.JSONDecodeError:
|
| 76 |
continue
|
| 77 |
-
print(f"[INFO] final response: {current_response}")
|
| 78 |
else:
|
| 79 |
print(f"[ERROR] Bad status code: {r.status_code}, response: {r.text}")
|
| 80 |
yield "Service temporarily unavailable"
|
|
|
|
| 50 |
"max_tokens": 32768
|
| 51 |
}
|
| 52 |
|
| 53 |
+
# print(f"[INFO] process user msg...")
|
| 54 |
+
# print(f"[INFO] userMsg: {message}")
|
| 55 |
|
| 56 |
try:
|
| 57 |
with requests.post(API_URL, headers=headers, json=data, stream=True) as r:
|
|
|
|
| 74 |
yield current_response
|
| 75 |
except json.JSONDecodeError:
|
| 76 |
continue
|
| 77 |
+
# print(f"[INFO] final response: {current_response}")
|
| 78 |
else:
|
| 79 |
print(f"[ERROR] Bad status code: {r.status_code}, response: {r.text}")
|
| 80 |
yield "Service temporarily unavailable"
|