doevent commited on
Commit
66c3b89
·
verified ·
1 Parent(s): 4e03061

Update app.py

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