agarwalamit081 commited on
Commit
8b9262c
·
verified ·
1 Parent(s): 18ddb05

Update app.py

Browse files

fixed indentation

Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -67,7 +67,7 @@ def convert_currency(amount: float, from_currency: str, to_currency: str) -> str
67
  converted = amount * rate
68
  return f"{amount:,.0f} {from_curr} = {converted:,.0f} {to_curr} (1 {from_curr} = {rate:.2f} {to_curr})"
69
  except Exception:
70
- return f"{amount:,.0f} {from_currency} = {amount:,.0f} {to_currency} (conversion rate unavailable)"
71
 
72
  @tool
73
  def get_time_difference(origin_city: str, destination_city: str) -> str:
@@ -279,7 +279,7 @@ def assemble_catalogue(
279
  """
280
 
281
  # ======================
282
- # AGENT SETUP (LOAD PROMPT FROM YAML)
283
  # ======================
284
  if __name__ == "__main__":
285
  print("🚀 Initializing Travel Catalogue Creator...")
@@ -307,7 +307,7 @@ if __name__ == "__main__":
307
  generate_travel_images,
308
  assemble_catalogue,
309
  ],
310
- max_steps=25,
311
  verbosity_level=1,
312
  name="TravelCatalogueCreator",
313
  description="Creates comprehensive, personalized travel catalogues with images",
 
67
  converted = amount * rate
68
  return f"{amount:,.0f} {from_curr} = {converted:,.0f} {to_curr} (1 {from_curr} = {rate:.2f} {to_curr})"
69
  except Exception:
70
+ return f"{amount:,.0f} {from_currency} = {amount:,.0f} {to_currency} (rate unavailable)"
71
 
72
  @tool
73
  def get_time_difference(origin_city: str, destination_city: str) -> str:
 
279
  """
280
 
281
  # ======================
282
+ # AGENT SETUP
283
  # ======================
284
  if __name__ == "__main__":
285
  print("🚀 Initializing Travel Catalogue Creator...")
 
307
  generate_travel_images,
308
  assemble_catalogue,
309
  ],
310
+ max_steps=15, # Reduced from 25 to prevent runaway execution
311
  verbosity_level=1,
312
  name="TravelCatalogueCreator",
313
  description="Creates comprehensive, personalized travel catalogues with images",