Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ app = FastAPI()
|
|
19 |
async def root():
|
20 |
return {"message": "Modelo entrenado y en ejecución."}
|
21 |
|
22 |
-
@spaces.
|
23 |
def load_and_train():
|
24 |
model_name = 'gpt2'
|
25 |
tokenizer = GPT2Tokenizer.from_pretrained(model_name)
|
|
|
19 |
async def root():
|
20 |
return {"message": "Modelo entrenado y en ejecución."}
|
21 |
|
22 |
+
@spaces.GPU
|
23 |
def load_and_train():
|
24 |
model_name = 'gpt2'
|
25 |
tokenizer = GPT2Tokenizer.from_pretrained(model_name)
|