Pilleliis commited on
Commit
c522ffd
·
verified ·
1 Parent(s): e7bd477

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
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
- except Exception as e:
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,