Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,7 @@ import pytz
|
|
5 |
import yaml
|
6 |
from tools.final_answer import FinalAnswerTool
|
7 |
from jaqpot_python_sdk.jaqpot_api_client import JaqpotApiClient
|
|
|
8 |
|
9 |
|
10 |
from Gradio_UI import GradioUI
|
@@ -49,9 +50,7 @@ final_answer = FinalAnswerTool()
|
|
49 |
# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
|
50 |
|
51 |
model = OpenAIServerModel(
|
52 |
-
|
53 |
-
api_base="https://qwen-7b.jaqpot.org/v1",
|
54 |
-
api_key="none",
|
55 |
max_tokens=2096,
|
56 |
temperature=0.5,
|
57 |
)
|
|
|
5 |
import yaml
|
6 |
from tools.final_answer import FinalAnswerTool
|
7 |
from jaqpot_python_sdk.jaqpot_api_client import JaqpotApiClient
|
8 |
+
import os
|
9 |
|
10 |
|
11 |
from Gradio_UI import GradioUI
|
|
|
50 |
# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
|
51 |
|
52 |
model = OpenAIServerModel(
|
53 |
+
api_key=os.getenv('OPENAI_API_KEY'),
|
|
|
|
|
54 |
max_tokens=2096,
|
55 |
temperature=0.5,
|
56 |
)
|