Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,15 +17,7 @@ final_answer = FinalAnswerTool()
|
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
class BasicAgent:
|
| 25 |
-
def __init__(self):
|
| 26 |
-
print("BasicAgent initialized.")
|
| 27 |
-
|
| 28 |
-
model = OpenAIServerModel(
|
| 29 |
api_key="fw_3ZSrkw3Qv5eeA1yx65x1eD5H",
|
| 30 |
api_base="https://api.fireworks.ai/inference/v1",
|
| 31 |
model_id="accounts/fireworks/models/qwen2p5-72b-instruct",
|
|
@@ -33,6 +25,14 @@ class BasicAgent:
|
|
| 33 |
max_tokens = 100
|
| 34 |
)
|
| 35 |
#top_p = 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
def __call__(self, question: str) -> str:
|
| 38 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
|
|
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
+
model = OpenAIServerModel(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
api_key="fw_3ZSrkw3Qv5eeA1yx65x1eD5H",
|
| 22 |
api_base="https://api.fireworks.ai/inference/v1",
|
| 23 |
model_id="accounts/fireworks/models/qwen2p5-72b-instruct",
|
|
|
|
| 25 |
max_tokens = 100
|
| 26 |
)
|
| 27 |
#top_p = 1
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
class BasicAgent:
|
| 32 |
+
def __init__(self):
|
| 33 |
+
print("BasicAgent initialized.")
|
| 34 |
+
|
| 35 |
+
|
| 36 |
|
| 37 |
def __call__(self, question: str) -> str:
|
| 38 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|