Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -49,10 +49,10 @@ def getRecipe(meal):
|
|
49 |
#just one result
|
50 |
#return json_object["hits"][0]
|
51 |
|
52 |
-
returnString = "This is " +
|
53 |
for line in json_object["hits"][0]["recipe"]["ingredientLines"]:
|
54 |
returnString += line + "\n"
|
55 |
-
returnString += "\n You can make it yourself by following the steps of this instruction: " + json_object["hits"][0]["recipe"]["url"]
|
56 |
|
57 |
return returnString
|
58 |
|
|
|
49 |
#just one result
|
50 |
#return json_object["hits"][0]
|
51 |
|
52 |
+
returnString = "This is " + meal.replace("_"," ") + ". \n\n It is Made out of following ingredients: \n\n"
|
53 |
for line in json_object["hits"][0]["recipe"]["ingredientLines"]:
|
54 |
returnString += line + "\n"
|
55 |
+
returnString += "\n You can make "+ json_object["hits"][0]["recipe"]["label"] + " it yourself by following the steps of this instruction: " + json_object["hits"][0]["recipe"]["url"]
|
56 |
|
57 |
return returnString
|
58 |
|