Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
|
@@ -246,7 +246,7 @@ def handle_message(event):
|
|
| 246 |
response = agent_executor.invoke(agent_input)
|
| 247 |
out = response["output"]
|
| 248 |
print('out')
|
| 249 |
-
if '
|
| 250 |
img_tmp = 'https'+out.split('https')[1]
|
| 251 |
image_url = img_tmp.split('png')[0]+'png'
|
| 252 |
print('image_url',image_url)
|
|
|
|
| 246 |
response = agent_executor.invoke(agent_input)
|
| 247 |
out = response["output"]
|
| 248 |
print('out')
|
| 249 |
+
if 'https' in out:
|
| 250 |
img_tmp = 'https'+out.split('https')[1]
|
| 251 |
image_url = img_tmp.split('png')[0]+'png'
|
| 252 |
print('image_url',image_url)
|