Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -20,7 +20,7 @@ if HF_TOKEN:
|
|
20 |
|
21 |
# Load AI Model
|
22 |
tokenizer = AutoTokenizer.from_pretrained("google/flan-t5-base",token=HF_TOKEN)
|
23 |
-
ai_model =
|
24 |
|
25 |
app = FastAPI()
|
26 |
|
|
|
20 |
|
21 |
# Load AI Model
|
22 |
tokenizer = AutoTokenizer.from_pretrained("google/flan-t5-base",token=HF_TOKEN)
|
23 |
+
ai_model = AutoModelForSeq2SeqLM.from_pretrained("google/flan-t5-base",token=HF_TOKEN)
|
24 |
|
25 |
app = FastAPI()
|
26 |
|