Update app.py
Browse files
app.py
CHANGED
|
@@ -53,7 +53,7 @@ def run(message: str,
|
|
| 53 |
output += response.token.text
|
| 54 |
|
| 55 |
def generate_image_caption(image_data):
|
| 56 |
-
interface = gr.Interface.load("models/Salesforce/blip-image-captioning-base",
|
| 57 |
caption = interface(image_data)
|
| 58 |
return caption
|
| 59 |
|
|
|
|
| 53 |
output += response.token.text
|
| 54 |
|
| 55 |
def generate_image_caption(image_data):
|
| 56 |
+
interface = gr.Interface.load("models/Salesforce/blip-image-captioning-base", HF_TOKEN=HF_TOKEN)
|
| 57 |
caption = interface(image_data)
|
| 58 |
return caption
|
| 59 |
|