Update app.py
Browse files
app.py
CHANGED
@@ -171,7 +171,8 @@ def main():
|
|
171 |
else:
|
172 |
st.write("**Image Link:** ", random_recipe['Image Link'])
|
173 |
st.write("**Rating:** ", random_recipe['Rating'])
|
174 |
-
|
|
|
175 |
st.write("**Ingredients:** ", random_recipe['Ingredients'])
|
176 |
st.write("**Recipe Facts:** ", random_recipe['Recipe Facts'])
|
177 |
st.write("**Directions:** ", random_recipe['Directions'])
|
@@ -201,7 +202,8 @@ def main():
|
|
201 |
else:
|
202 |
st.write("**Image Link:** ", response_json[0]['Image Link'])
|
203 |
st.write("**Rating:** ", response_json[0]['Rating'])
|
204 |
-
|
|
|
205 |
st.write("**Ingredients:** ", response_json[0]['Ingredients'])
|
206 |
st.write("**Recipe Facts:** ", response_json[0]['Recipe Facts'])
|
207 |
st.write("**Directions:** ", response_json[0]['Directions'])
|
|
|
171 |
else:
|
172 |
st.write("**Image Link:** ", random_recipe['Image Link'])
|
173 |
st.write("**Rating:** ", random_recipe['Rating'])
|
174 |
+
if random_recipe['Description'] != "Description not found":
|
175 |
+
st.write("**Description:** ", random_recipe['Description'])
|
176 |
st.write("**Ingredients:** ", random_recipe['Ingredients'])
|
177 |
st.write("**Recipe Facts:** ", random_recipe['Recipe Facts'])
|
178 |
st.write("**Directions:** ", random_recipe['Directions'])
|
|
|
202 |
else:
|
203 |
st.write("**Image Link:** ", response_json[0]['Image Link'])
|
204 |
st.write("**Rating:** ", response_json[0]['Rating'])
|
205 |
+
if response_json[0]['Description'] != "Description not found":
|
206 |
+
st.write("**Description:** ", response_json[0]['Description'])
|
207 |
st.write("**Ingredients:** ", response_json[0]['Ingredients'])
|
208 |
st.write("**Recipe Facts:** ", response_json[0]['Recipe Facts'])
|
209 |
st.write("**Directions:** ", response_json[0]['Directions'])
|