stazizov commited on
Commit
e9ed984
1 Parent(s): c11a5e5

Update app.py

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