Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ pipeline = pipeline(task="text-generation", model="Preetham04/text-generation")
|
|
5 |
|
6 |
def predict(input_img):
|
7 |
predictions = pipeline(input_img)
|
8 |
-
return {p["
|
9 |
|
10 |
gradio_app = gr.Interface(
|
11 |
predict,
|
|
|
5 |
|
6 |
def predict(input_img):
|
7 |
predictions = pipeline(input_img)
|
8 |
+
return {p["title"] for p in predictions}
|
9 |
|
10 |
gradio_app = gr.Interface(
|
11 |
predict,
|