puyao commited on
Commit
a9d2828
·
1 Parent(s): 535acc9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -48,13 +48,13 @@ def predict_price(year, month, markets, food):
48
 
49
  prediction = model.predict(input_data)
50
 
51
- food_url = "https://raw.githubusercontent.com/TimiUU/wine/main" + commodity_name[0] + ".png"
52
  img = Image.open(requests.get(food_url, stream=True).raw)
53
 
54
  # 返回文本和图像对象
55
- return f"Prediction: {prediction[0]}", img
56
 
57
- #return prediction, food_url
58
 
59
 
60
  demo = gr.Interface(
 
48
 
49
  prediction = model.predict(input_data)
50
 
51
+ food_url = "https://raw.githubusercontent.com/TimiUU/wine/main/" + commodity_name[0] + ".png"
52
  img = Image.open(requests.get(food_url, stream=True).raw)
53
 
54
  # 返回文本和图像对象
55
+ #return f"Prediction: {prediction[0]}", img
56
 
57
+ return prediction, img
58
 
59
 
60
  demo = gr.Interface(