gianTheo commited on
Commit
1b4ae40
1 Parent(s): 0e86b33

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -36,7 +36,7 @@ def wine(fixed_acidity, volatile_acidity, citric_acid, residual_sugar,chlorides,
36
  img = Image.open(resp.raw)
37
  newsize = (200, 200)
38
  img1 = img.resize(newsize)
39
- return img1
40
 
41
  demo = gr.Interface(
42
  fn=wine,
@@ -58,6 +58,8 @@ demo = gr.Interface(
58
 
59
 
60
  ],
61
- outputs=gr.Image(type="pil"))
 
 
62
 
63
  demo.launch(debug=True)
 
36
  img = Image.open(resp.raw)
37
  newsize = (200, 200)
38
  img1 = img.resize(newsize)
39
+ return res[0]
40
 
41
  demo = gr.Interface(
42
  fn=wine,
 
58
 
59
 
60
  ],
61
+ #outputs=gr.Image(type="pil")
62
+ outputs = gr.Number(label = "quality")
63
+ )
64
 
65
  demo.launch(debug=True)