Update app.py
Browse files
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
|
| 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)
|