Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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)
|