Yhhxhfh commited on
Commit
e033c91
·
verified ·
1 Parent(s): 7ccb0c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -11,8 +11,6 @@ from dotenv import load_dotenv
11
  from pydantic import BaseModel
12
  import asyncio
13
  from huggingface_hub import login
14
- from huggingface_hub import HfApi
15
- import spaces
16
 
17
  load_dotenv()
18
  os.system("pip install --upgrade llama-cpp-python")
@@ -105,7 +103,7 @@ async def auto_train_model():
105
  await asyncio.sleep(1)
106
 
107
  @app.post("/generate_multimodel")
108
- @spaces.GPU()
109
  async def api_generate_multimodel(request: Request):
110
  try:
111
  data = await request.json()
 
11
  from pydantic import BaseModel
12
  import asyncio
13
  from huggingface_hub import login
 
 
14
 
15
  load_dotenv()
16
  os.system("pip install --upgrade llama-cpp-python")
 
103
  await asyncio.sleep(1)
104
 
105
  @app.post("/generate_multimodel")
106
+ # @spaces.GPU() # Eliminar temporalmente o comentar si causa error
107
  async def api_generate_multimodel(request: Request):
108
  try:
109
  data = await request.json()