Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,11 +20,10 @@ class BasicAgent:
|
|
| 20 |
def __init__(self):
|
| 21 |
print("BasicAgent initialized.")
|
| 22 |
|
| 23 |
-
# Load
|
| 24 |
llm = InferenceClientModel(
|
| 25 |
model_id="google/flan-t5-base",
|
| 26 |
-
token=os.getenv("test"),
|
| 27 |
-
task="text2text-generation",
|
| 28 |
max_new_tokens=256,
|
| 29 |
temperature=0.2,
|
| 30 |
)
|
|
|
|
| 20 |
def __init__(self):
|
| 21 |
print("BasicAgent initialized.")
|
| 22 |
|
| 23 |
+
# Load model
|
| 24 |
llm = InferenceClientModel(
|
| 25 |
model_id="google/flan-t5-base",
|
| 26 |
+
token=os.getenv("test"),
|
|
|
|
| 27 |
max_new_tokens=256,
|
| 28 |
temperature=0.2,
|
| 29 |
)
|