Rooni commited on
Commit
a2cb572
1 Parent(s): 9e9b5cf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -4
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
- css = """
35
- footer {visibility: hidden !important;}
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