Jekaterina commited on
Commit
eb9e9f5
·
verified ·
1 Parent(s): 9979183

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -12,7 +12,6 @@ from tools.text_to_image import TextToImageTool
12
  from Gradio_UI import GradioUI
13
 
14
  from huggingface_hub import login
15
- login(token = os.getenv("HF_API_KEY"))
16
 
17
  '''
18
  # Below is an example of a tool that does nothing.
@@ -42,6 +41,9 @@ def get_current_time_in_timezone(timezone: str) -> str:
42
  except Exception as e:
43
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
44
 
 
 
 
45
  visit_webpage = VisitWebpageTool()
46
  web_search = DuckDuckGoSearchTool()
47
  final_answer = FinalAnswerTool()
 
12
  from Gradio_UI import GradioUI
13
 
14
  from huggingface_hub import login
 
15
 
16
  '''
17
  # Below is an example of a tool that does nothing.
 
41
  except Exception as e:
42
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
43
 
44
+ hf_api_key = os.getenv("HF_API_KEY")
45
+ login(token = hf_api_key)
46
+
47
  visit_webpage = VisitWebpageTool()
48
  web_search = DuckDuckGoSearchTool()
49
  final_answer = FinalAnswerTool()