Spaces:
Sleeping
Sleeping
print msgs
Browse files
app.py
CHANGED
|
@@ -57,8 +57,9 @@ async def chat(input_text, input_url):
|
|
| 57 |
headers = {'API-Key': os.environ.get("TWINROOM_API_KEY")}
|
| 58 |
json_payload = json.dumps(payload)
|
| 59 |
response = requests.post(endpoint, headers=headers, data=json_payload)
|
| 60 |
-
|
| 61 |
response_msgs = extract_texts(response.text)
|
|
|
|
| 62 |
|
| 63 |
return ''.join(response_msgs)
|
| 64 |
|
|
|
|
| 57 |
headers = {'API-Key': os.environ.get("TWINROOM_API_KEY")}
|
| 58 |
json_payload = json.dumps(payload)
|
| 59 |
response = requests.post(endpoint, headers=headers, data=json_payload)
|
| 60 |
+
print(response)
|
| 61 |
response_msgs = extract_texts(response.text)
|
| 62 |
+
print(response_msgs)
|
| 63 |
|
| 64 |
return ''.join(response_msgs)
|
| 65 |
|