Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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"
|