Spaces:
Sleeping
Sleeping
add new line
Browse files
app.py
CHANGED
|
@@ -69,7 +69,7 @@ async def chat(input_text, input_url):
|
|
| 69 |
json_payload = json.dumps(payload)
|
| 70 |
response = requests.post(endpoint, headers=headers, data=json_payload)
|
| 71 |
response_msgs = extract_texts(response.text)
|
| 72 |
-
result = ''.join(response_msgs)
|
| 73 |
if input_url:
|
| 74 |
result += f'\n{input_url}'
|
| 75 |
return result
|
|
|
|
| 69 |
json_payload = json.dumps(payload)
|
| 70 |
response = requests.post(endpoint, headers=headers, data=json_payload)
|
| 71 |
response_msgs = extract_texts(response.text)
|
| 72 |
+
result = '\n'.join(response_msgs)
|
| 73 |
if input_url:
|
| 74 |
result += f'\n{input_url}'
|
| 75 |
return result
|