TaiYouWeb commited on
Commit
b1d5ba9
1 Parent(s): cfa3d27

Update app.py

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