Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
import torch
|
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)
|
|
|
1 |
import torch
|
|
|
2 |
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 |
+
from KandiSuperRes import get_SR_pipeline
|
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)
|