Spaces:
Running
on
Zero
Running
on
Zero
remove spaces.gpu from generate sync
Browse files
app.py
CHANGED
|
@@ -225,7 +225,6 @@ class GenerateRequest(BaseModel):
|
|
| 225 |
# Add other generation parameters if needed
|
| 226 |
|
| 227 |
@api_app.post("/api/generate-sync")
|
| 228 |
-
@spaces.GPU(duration=300) # Allow longer duration for API calls
|
| 229 |
async def generate_sync_api(request_data: GenerateRequest):
|
| 230 |
global pipeline # Access the globally initialized pipeline
|
| 231 |
if pipeline is None:
|
|
|
|
| 225 |
# Add other generation parameters if needed
|
| 226 |
|
| 227 |
@api_app.post("/api/generate-sync")
|
|
|
|
| 228 |
async def generate_sync_api(request_data: GenerateRequest):
|
| 229 |
global pipeline # Access the globally initialized pipeline
|
| 230 |
if pipeline is None:
|