Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -61,7 +61,7 @@ def read_excel_tool(file_path: str) -> str:
|
|
| 61 |
class BasicAgent:
|
| 62 |
def __init__(self):
|
| 63 |
print("BasicAgent initialized.")
|
| 64 |
-
|
| 65 |
self.system_message = (
|
| 66 |
"You are a question answering agent for scientific and encyclopedic questions. "
|
| 67 |
"Your goal is to provide concise, factually correct answers using only verified sources. "
|
|
@@ -71,7 +71,7 @@ class BasicAgent:
|
|
| 71 |
|
| 72 |
model = InferenceClientModel(
|
| 73 |
model_id="gpt-4-turbo",
|
| 74 |
-
token=
|
| 75 |
provider="openai"#,
|
| 76 |
# temperature=0.0 # 0.7 by default (not sure)
|
| 77 |
)
|
|
|
|
| 61 |
class BasicAgent:
|
| 62 |
def __init__(self):
|
| 63 |
print("BasicAgent initialized.")
|
| 64 |
+
openai_key = os.environ.get("OPENAI_API_KEY")
|
| 65 |
self.system_message = (
|
| 66 |
"You are a question answering agent for scientific and encyclopedic questions. "
|
| 67 |
"Your goal is to provide concise, factually correct answers using only verified sources. "
|
|
|
|
| 71 |
|
| 72 |
model = InferenceClientModel(
|
| 73 |
model_id="gpt-4-turbo",
|
| 74 |
+
token=openai_key,
|
| 75 |
provider="openai"#,
|
| 76 |
# temperature=0.0 # 0.7 by default (not sure)
|
| 77 |
)
|