Yhhxhfh commited on
Commit
faca04b
1 Parent(s): fe0bd35

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.gpu
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)