doevent commited on
Commit
066186a
·
verified ·
1 Parent(s): 03699e7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -3,10 +3,10 @@ from PIL import Image
3
  import gradio as gr
4
  import os
5
 
6
- os.system("git clone https://github.com/ai-forever/KandiSuperRes.git")
7
  os.system("cd KandiSuperRes")
8
  os.system("ls")
9
- from KandiSuperRes.KandiSuperRes import sr_pipeline
10
 
11
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
12
  sr_pipe2x = sr_pipeline(device=device, fp16=True, flash=True, scale=2)
 
3
  import gradio as gr
4
  import os
5
 
6
+ os.system("git clone https://github.com/ai-forever/KandiSuperRes.git .")
7
  os.system("cd KandiSuperRes")
8
  os.system("ls")
9
+ from KandiSuperRes import sr_pipeline
10
 
11
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
12
  sr_pipe2x = sr_pipeline(device=device, fp16=True, flash=True, scale=2)