joaomorossini commited on
Commit
b24d3c5
·
1 Parent(s): 295ed9e

Update app.py

Browse files

Fix endpoint in f string

Files changed (1) hide show
  1. app.py +1 -1
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"**{model_name.upper()}**: \n\n Error - {result['error']} \n\n\n "
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