Update app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,7 @@ def wine(type_, fixed_acidity, volatile_acidity, citric_acid, residual_sugar, ch
|
|
30 |
# the first element.
|
31 |
# print("Res: {0}").format(res)
|
32 |
print(res)
|
33 |
-
wine_url = "https://raw.githubusercontent.com/aym1king/serverless-intro/master/wine/wine_imgs/" + res[0] + ".png"
|
34 |
img = Image.open(requests.get(wine_url, stream=True).raw)
|
35 |
return img
|
36 |
|
|
|
30 |
# the first element.
|
31 |
# print("Res: {0}").format(res)
|
32 |
print(res)
|
33 |
+
wine_url = "https://raw.githubusercontent.com/aym1king/serverless-intro/master/wine/wine_imgs/" + str(int(res[0])) + ".png"
|
34 |
img = Image.open(requests.get(wine_url, stream=True).raw)
|
35 |
return img
|
36 |
|