Update app.py
Browse files
app.py
CHANGED
|
@@ -50,9 +50,11 @@ def predict_price(year, month, markets, food):
|
|
| 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 prediction, food_url
|
| 56 |
|
| 57 |
|
| 58 |
demo = gr.Interface(
|
|
|
|
| 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(
|