iamnamas commited on
Commit
3c5c292
·
verified ·
1 Parent(s): 7747e25

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -5,6 +5,7 @@ import pytz
5
  import yaml
6
  from tools.final_answer import FinalAnswerTool
7
  import traceback
 
8
 
9
  from Gradio_UI import GradioUI
10
 
@@ -49,6 +50,8 @@ def get_current_time_in_timezone(timezone: str) -> str:
49
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
50
 
51
 
 
 
52
  final_answer = FinalAnswerTool()
53
  model = HfApiModel(
54
  max_tokens=2096,
 
5
  import yaml
6
  from tools.final_answer import FinalAnswerTool
7
  import traceback
8
+ import os
9
 
10
  from Gradio_UI import GradioUI
11
 
 
50
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
51
 
52
 
53
+ HF_TOKEN = os.environ['HF_TOKEN']
54
+
55
  final_answer = FinalAnswerTool()
56
  model = HfApiModel(
57
  max_tokens=2096,