Spaces:
Runtime error
Runtime error
passed API to SECRETS
Browse files
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 = "
|
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:
|