Redve commited on
Commit
0a8a4c3
·
1 Parent(s): fd937f8

Output Lable

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -38,9 +38,6 @@ def wine_quality(type, fixed_acidity, volatile_acidity, citric_acid, residual_su
38
  print(df)
39
  # 'res' is a list of predictions returned as the label.
40
  res = model.predict(df)
41
- # We add '[0]' to the result of the transformed 'res', because 'res' is a list, and we only want
42
- # the first element.
43
- # print("Res: {0}").format(res)
44
  print(res)
45
 
46
  demo = gr.Interface(
@@ -62,7 +59,8 @@ demo = gr.Interface(
62
  gr.inputs.Number(default=5.0, label="sulphates"),
63
  gr.inputs.Number(default=5.0, label="alcohol")
64
  ],
65
- outputs=gr.Image(type="pil"))
 
66
 
67
  demo.launch(debug=True)
68
 
 
38
  print(df)
39
  # 'res' is a list of predictions returned as the label.
40
  res = model.predict(df)
 
 
 
41
  print(res)
42
 
43
  demo = gr.Interface(
 
59
  gr.inputs.Number(default=5.0, label="sulphates"),
60
  gr.inputs.Number(default=5.0, label="alcohol")
61
  ],
62
+ outputs=gr.outputs.Label(label="Quality")
63
+ )
64
 
65
  demo.launch(debug=True)
66