Spaces:
Runtime error
Runtime error
Commit
·
0c5e018
1
Parent(s):
b8f7027
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,6 +31,9 @@ def wine(type, fixed_acidity, volatile_acidity, citric_acid, residual_sugar, chl
|
|
| 31 |
# the first element.
|
| 32 |
# print("Res: {0}").format(res)
|
| 33 |
print(res)
|
|
|
|
|
|
|
|
|
|
| 34 |
|
| 35 |
|
| 36 |
demo = gr.Interface(
|
|
|
|
| 31 |
# the first element.
|
| 32 |
# print("Res: {0}").format(res)
|
| 33 |
print(res)
|
| 34 |
+
wine_url = "https://raw.githubusercontent.com/Epoxyra/id2223_lab1_wine/main/images/" + res[0] + ".jpg"
|
| 35 |
+
img = Image.open(requests.get(wine_url, stream=True).raw)
|
| 36 |
+
return img
|
| 37 |
|
| 38 |
|
| 39 |
demo = gr.Interface(
|