Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,5 @@
|
|
| 1 |
import spaces
|
| 2 |
import torch
|
| 3 |
-
# torch.multiprocessing.set_start_method('spawn', force=True)
|
| 4 |
|
| 5 |
import re
|
| 6 |
import os
|
|
@@ -36,6 +35,7 @@ xflux_pipeline.to(device='cuda' if torch.cuda.is_available() else 'cpu')
|
|
| 36 |
|
| 37 |
@spaces.GPU
|
| 38 |
def generate(**kwargs):
|
|
|
|
| 39 |
return xflux_pipeline.gradio_generate(**kwargs)
|
| 40 |
|
| 41 |
def parse_args() -> Config:
|
|
|
|
| 1 |
import spaces
|
| 2 |
import torch
|
|
|
|
| 3 |
|
| 4 |
import re
|
| 5 |
import os
|
|
|
|
| 35 |
|
| 36 |
@spaces.GPU
|
| 37 |
def generate(**kwargs):
|
| 38 |
+
torch.multiprocessing.set_start_method('spawn', force=True)
|
| 39 |
return xflux_pipeline.gradio_generate(**kwargs)
|
| 40 |
|
| 41 |
def parse_args() -> Config:
|