Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -21,9 +21,7 @@ if st.button("Otsi retsepte"):
|
|
21 |
if ingredients:
|
22 |
# Tõlgi koostisosad
|
23 |
translated_ingredients = translator(ingredients)[0]['translation_text']
|
24 |
-
|
25 |
-
st.error(f"Tõlkimine ebaõnnestus: {e}")
|
26 |
-
st.stop()
|
27 |
# Tee päring Spoonacular API-le
|
28 |
params = {
|
29 |
"ingredients": translated_ingredients,
|
|
|
21 |
if ingredients:
|
22 |
# Tõlgi koostisosad
|
23 |
translated_ingredients = translator(ingredients)[0]['translation_text']
|
24 |
+
|
|
|
|
|
25 |
# Tee päring Spoonacular API-le
|
26 |
params = {
|
27 |
"ingredients": translated_ingredients,
|