chansung commited on
Commit
0e25a0e
1 Parent(s): 33cc221

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -4,9 +4,6 @@ import gradio as gr
4
 
5
  from gen import get_pretrained_models, get_output, setup_model_parallel
6
 
7
- torch.cuda.set_device(0)
8
- torch.cuda.empty_cache()
9
-
10
  os.environ["RANK"] = "0"
11
  os.environ["WORLD_SIZE"] = "1"
12
  os.environ["MASTER_ADDR"] = "127.0.0.1"
 
4
 
5
  from gen import get_pretrained_models, get_output, setup_model_parallel
6
 
 
 
 
7
  os.environ["RANK"] = "0"
8
  os.environ["WORLD_SIZE"] = "1"
9
  os.environ["MASTER_ADDR"] = "127.0.0.1"