Spaces:
Runtime error
Runtime error
joaomorossini
commited on
Commit
·
b24d3c5
1
Parent(s):
295ed9e
Update app.py
Browse filesFix endpoint in f string
app.py
CHANGED
@@ -80,7 +80,7 @@ def captioner(image):
|
|
80 |
f"**{endpoint}**: \n\n {result[0]['generated_text']} \n\n\n "
|
81 |
)
|
82 |
else:
|
83 |
-
caption = f"**{
|
84 |
captions.append(caption)
|
85 |
return "".join(captions) # Join all captions into a single string
|
86 |
|
|
|
80 |
f"**{endpoint}**: \n\n {result[0]['generated_text']} \n\n\n "
|
81 |
)
|
82 |
else:
|
83 |
+
caption = f"**{endpoint}**: \n\n Error - {result['error']} \n\n\n "
|
84 |
captions.append(caption)
|
85 |
return "".join(captions) # Join all captions into a single string
|
86 |
|