Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,6 +6,8 @@ import json
|
|
6 |
import torch
|
7 |
import gradio as gr
|
8 |
|
|
|
|
|
9 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
10 |
model_dir = snapshot_download(model_config['model_dir'])
|
11 |
|
|
|
6 |
import torch
|
7 |
import gradio as gr
|
8 |
|
9 |
+
from config import model_config
|
10 |
+
|
11 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
12 |
model_dir = snapshot_download(model_config['model_dir'])
|
13 |
|