thechaiexperiment commited on
Commit
cb1deeb
·
1 Parent(s): ae8a4eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -207,6 +207,10 @@ def load_data():
207
 
208
  return True
209
 
 
 
 
 
210
  def translate_text(text, source_to_target='ar_to_en'):
211
  """Translate text between Arabic and English"""
212
  try:
@@ -620,9 +624,7 @@ async def recipes_endpoint(profile: MedicalProfile):
620
  except Exception as e:
621
  raise HTTPException(status_code=500, detail=str(e))
622
 
623
- # Initialize application
624
- print("Initializing application...")
625
- init_success = load_models() and load_data()
626
 
627
  if not init_success:
628
  print("Warning: Application initialized with partial functionality")
 
207
 
208
  return True
209
 
210
+ # Initialize application
211
+ print("Initializing application...")
212
+ init_success = load_models() and load_data()
213
+
214
  def translate_text(text, source_to_target='ar_to_en'):
215
  """Translate text between Arabic and English"""
216
  try:
 
624
  except Exception as e:
625
  raise HTTPException(status_code=500, detail=str(e))
626
 
627
+
 
 
628
 
629
  if not init_success:
630
  print("Warning: Application initialized with partial functionality")