Sonu313131 commited on
Commit
98f9e13
·
verified ·
1 Parent(s): 66cd014

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -10,7 +10,7 @@ from huggingface_hub import login
10
  #h
11
  DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
12
 
13
- login(token=os.environ["HUGGINGFACEHUB_API_TOKEN"])
14
  openai_key = os.environ.get("OPENAI_API_KEY")
15
 
16
  search_tool = DuckDuckGoSearchTool()
@@ -25,6 +25,7 @@ async def run_and_submit_all(profile: gr.OAuthProfile | None):
25
  model=InferenceClientModel(
26
  model="gpt-3.5-turbo",
27
  provider="openai",
 
28
  temperature=0.2, # Optional
29
  max_tokens=2048 # Optional, but keep within reasonable limits
30
  ),
 
10
  #h
11
  DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
12
 
13
+ #login(token=os.environ["HUGGINGFACEHUB_API_TOKEN"])
14
  openai_key = os.environ.get("OPENAI_API_KEY")
15
 
16
  search_tool = DuckDuckGoSearchTool()
 
25
  model=InferenceClientModel(
26
  model="gpt-3.5-turbo",
27
  provider="openai",
28
+ api_key=openai_key
29
  temperature=0.2, # Optional
30
  max_tokens=2048 # Optional, but keep within reasonable limits
31
  ),