Fix image URL conversion from int to str
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ def wine(fixed_acidity, volatile_acidity, citric_acid, residual_sugar, chlorides
|
|
33 |
|
34 |
print(res)
|
35 |
|
36 |
-
url = "https://raw.githubusercontent.com/pierrelefevre/scalable-ml/main/lab1/task2/img/" + int(res[0]) + ".png"
|
37 |
img = Image.open(requests.get(url, stream=True).raw)
|
38 |
|
39 |
return [res[0], img]
|
|
|
33 |
|
34 |
print(res)
|
35 |
|
36 |
+
url = "https://raw.githubusercontent.com/pierrelefevre/scalable-ml/main/lab1/task2/img/" + str(int(res[0])) + ".png"
|
37 |
img = Image.open(requests.get(url, stream=True).raw)
|
38 |
|
39 |
return [res[0], img]
|