pierrelf commited on
Commit
c21e5ab
1 Parent(s): da81044

Fix image URL conversion from int to str

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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]