Update app.py
Browse files
app.py
CHANGED
|
@@ -18,14 +18,7 @@ class BasicAgent:
|
|
| 18 |
# initialize HF inference pipeline once
|
| 19 |
if HF_TOKEN is None:
|
| 20 |
raise ValueError("HF_TOKEN not set in environment")
|
| 21 |
-
self.generator = pipeline(
|
| 22 |
-
"text-generation",
|
| 23 |
-
model="gpt2",
|
| 24 |
-
tokenizer="gpt2",
|
| 25 |
-
framework="pt", # force PyTorch
|
| 26 |
-
token=HF_TOKEN,
|
| 27 |
-
device=-1
|
| 28 |
-
)
|
| 29 |
# The GAIA system prompt (no "FINAL ANSWER:" at the end)
|
| 30 |
self.system_prompt = (
|
| 31 |
"You are a general AI assistant. "
|
|
|
|
| 18 |
# initialize HF inference pipeline once
|
| 19 |
if HF_TOKEN is None:
|
| 20 |
raise ValueError("HF_TOKEN not set in environment")
|
| 21 |
+
self.generator = pipeline("text-generation", model="distilbert/distilgpt2")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
# The GAIA system prompt (no "FINAL ANSWER:" at the end)
|
| 23 |
self.system_prompt = (
|
| 24 |
"You are a general AI assistant. "
|