Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
import os
|
2 |
-
|
3 |
import cv2
|
4 |
import gradio as gr
|
5 |
import torch
|
@@ -31,9 +31,12 @@ upsampler = RealESRGANer(scale=4, model_path=model_path, model=model, tile=0, ti
|
|
31 |
|
32 |
os.makedirs('output', exist_ok=True)
|
33 |
|
34 |
-
|
35 |
-
|
36 |
-
|
|
|
|
|
|
|
37 |
|
38 |
def inference(img, version, scale, weight):
|
39 |
weight /= 100
|
|
|
1 |
import os
|
2 |
+
import requests
|
3 |
import cv2
|
4 |
import gradio as gr
|
5 |
import torch
|
|
|
31 |
|
32 |
os.makedirs('output', exist_ok=True)
|
33 |
|
34 |
+
# Ссылка на файл CSS
|
35 |
+
css_url = "https://aihubyufi-aihub.static.hf.space/style.css"
|
36 |
+
|
37 |
+
# Получение CSS по ссылке
|
38 |
+
response = requests.get(css_url)
|
39 |
+
css = response.text
|
40 |
|
41 |
def inference(img, version, scale, weight):
|
42 |
weight /= 100
|