NoorAhmadHaral
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -2,8 +2,11 @@ import os
|
|
2 |
import gradio as gr
|
3 |
from transformers import pipeline
|
4 |
|
5 |
-
pipe = pipeline("image-to-text",
|
6 |
-
|
|
|
|
|
|
|
7 |
|
8 |
|
9 |
def launch(input):
|
|
|
2 |
import gradio as gr
|
3 |
from transformers import pipeline
|
4 |
|
5 |
+
# pipe = pipeline("image-to-text",
|
6 |
+
# model="./models/Salesforce/blip-image-captioning-base")
|
7 |
+
|
8 |
+
pipe = pipeline("image-to-text", model="Salesforce/blip-image-captioning-base")
|
9 |
+
|
10 |
|
11 |
|
12 |
def launch(input):
|