Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,8 +7,8 @@ import gradio as gr
|
|
| 7 |
|
| 8 |
|
| 9 |
# Use a pipeline as a high-level helper
|
| 10 |
-
|
| 11 |
-
from optimum.onnxruntime import pipeline
|
| 12 |
pipe = pipeline("image-to-text", model="Salesforce/blip-image-captioning-large")
|
| 13 |
def generate_img(prompt):
|
| 14 |
|
|
|
|
| 7 |
|
| 8 |
|
| 9 |
# Use a pipeline as a high-level helper
|
| 10 |
+
from transformers import pipeline
|
| 11 |
+
#from optimum.onnxruntime import pipeline
|
| 12 |
pipe = pipeline("image-to-text", model="Salesforce/blip-image-captioning-large")
|
| 13 |
def generate_img(prompt):
|
| 14 |
|