Update app.py
Browse filesRemoved openai
app.py
CHANGED
@@ -8,7 +8,6 @@ import datetime
|
|
8 |
import requests
|
9 |
import pytz
|
10 |
from tools.final_answer import FinalAnswerTool
|
11 |
-
# import openai
|
12 |
from huggingface_hub import login
|
13 |
|
14 |
# (Keep Constants as is)
|
@@ -48,15 +47,11 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
48 |
|
49 |
# 1. Instantiate Agent ( modify this part to create your agent)
|
50 |
try:
|
51 |
-
# agent = BasicAgent()
|
52 |
-
# openai.api_key = os.getenv('my_key')
|
53 |
-
# hf_token = os.getenv('hf_token')
|
54 |
login()
|
55 |
model = HfApiModel(
|
56 |
max_tokens=2096,
|
57 |
temperature=0.5,
|
58 |
model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
|
59 |
-
# model_id='gpt-4o',
|
60 |
# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud',
|
61 |
custom_role_conversions=None,
|
62 |
)
|
|
|
8 |
import requests
|
9 |
import pytz
|
10 |
from tools.final_answer import FinalAnswerTool
|
|
|
11 |
from huggingface_hub import login
|
12 |
|
13 |
# (Keep Constants as is)
|
|
|
47 |
|
48 |
# 1. Instantiate Agent ( modify this part to create your agent)
|
49 |
try:
|
|
|
|
|
|
|
50 |
login()
|
51 |
model = HfApiModel(
|
52 |
max_tokens=2096,
|
53 |
temperature=0.5,
|
54 |
model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
|
|
|
55 |
# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud',
|
56 |
custom_role_conversions=None,
|
57 |
)
|