Spaces:
Sleeping
Sleeping
print msgs
Browse files
app.py
CHANGED
@@ -57,11 +57,12 @@ 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 |
-
print(response)
|
61 |
response_msgs = extract_texts(response.text)
|
62 |
print(response_msgs)
|
63 |
-
|
64 |
-
|
|
|
65 |
|
66 |
with gr.Blocks() as iface:
|
67 |
# UI
|
|
|
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.text)
|
61 |
response_msgs = extract_texts(response.text)
|
62 |
print(response_msgs)
|
63 |
+
result = ''.join(response_msgs)
|
64 |
+
print(result)
|
65 |
+
return result
|
66 |
|
67 |
with gr.Blocks() as iface:
|
68 |
# UI
|