oieieio commited on
Commit
ce4d2f0
·
verified ·
1 Parent(s): 98ea7ec

passed API to SECRETS

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -4,6 +4,7 @@ import requests
4
  import pytz
5
  import yaml
6
  from tools.final_answer import FinalAnswerTool
 
7
 
8
  from Gradio_UI import GradioUI
9
 
@@ -34,7 +35,7 @@ def search_flights(departure: str, destination: str, date: str) -> str:
34
  search_results = DuckDuckGoSearchTool()(query) # Calls DuckDuckGo search
35
  return f"Here are some flight options:\n{search_results}"
36
 
37
- API_KEY = "fca_live_L2xM404CxH5IQWoNotD3X645W8lv7UHOoJdswwgd" # 🔹 Your API key
38
 
39
  @tool
40
  def convert_currency(amount: float, from_currency: str, to_currency: str) -> str:
 
4
  import pytz
5
  import yaml
6
  from tools.final_answer import FinalAnswerTool
7
+ import os
8
 
9
  from Gradio_UI import GradioUI
10
 
 
35
  search_results = DuckDuckGoSearchTool()(query) # Calls DuckDuckGo search
36
  return f"Here are some flight options:\n{search_results}"
37
 
38
+ API_KEY = os.getenv("FREECURRENCYAPI_KEY")
39
 
40
  @tool
41
  def convert_currency(amount: float, from_currency: str, to_currency: str) -> str: