Preetham04 commited on
Commit
b0fdb33
·
verified ·
1 Parent(s): f375be3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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["labels"] for p in predictions}
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,