Parthjain9925 commited on
Commit
4899446
·
verified ·
1 Parent(s): 0a27bf3

added hf token

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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
 
@@ -36,6 +37,7 @@ def get_current_time_in_timezone(timezone: str) -> str:
36
 
37
  final_answer = FinalAnswerTool()
38
  model = HfApiModel(
 
39
  max_tokens=2096,
40
  temperature=0.5,
41
  model_id='mistralai/Mistral-7B-instruct-v0.3',# it is possible that this model may be overloaded
 
4
  import pytz
5
  import yaml
6
  from tools.final_answer import FinalAnswerTool
7
+ import os
8
 
9
  from Gradio_UI import GradioUI
10
 
 
37
 
38
  final_answer = FinalAnswerTool()
39
  model = HfApiModel(
40
+ token = os.environ["HF_TOKEN"],
41
  max_tokens=2096,
42
  temperature=0.5,
43
  model_id='mistralai/Mistral-7B-instruct-v0.3',# it is possible that this model may be overloaded