Preetham04 commited on
Commit
37a38dd
·
verified ·
1 Parent(s): a837e17

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["label"]: p["score"] 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["label"] for p in predictions}
9
 
10
  gradio_app = gr.Interface(
11
  predict,