hyunjunian commited on
Commit
709b3ae
·
1 Parent(s): a0a2a39
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -11,6 +11,8 @@ def greet(image):
11
  files={'image': image},
12
  )
13
 
 
 
14
  output_dict = {}
15
 
16
  for item in r.json()['predictions']:
@@ -20,5 +22,5 @@ def greet(image):
20
 
21
  return output_dict
22
 
23
- demo = gr.Interface(fn=greet, inputs="image", outputs="label")
24
  demo.launch()
 
11
  files={'image': image},
12
  )
13
 
14
+ return r.text
15
+
16
  output_dict = {}
17
 
18
  for item in r.json()['predictions']:
 
22
 
23
  return output_dict
24
 
25
+ demo = gr.Interface(fn=greet, inputs="image", outputs="text")
26
  demo.launch()