Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,6 +4,7 @@ import torch
|
|
4 |
import argparse
|
5 |
import numpy as np
|
6 |
import gradio as gr
|
|
|
7 |
|
8 |
from PIL import Image
|
9 |
from copy import deepcopy
|
@@ -94,9 +95,12 @@ load_network(model, MODEL_NAME, strict=True, param_key='params')
|
|
94 |
|
95 |
|
96 |
|
97 |
-
|
98 |
-
|
99 |
-
|
|
|
|
|
|
|
100 |
|
101 |
demo = gr.Interface(
|
102 |
fn=process_img,
|
|
|
4 |
import argparse
|
5 |
import numpy as np
|
6 |
import gradio as gr
|
7 |
+
import requests
|
8 |
|
9 |
from PIL import Image
|
10 |
from copy import deepcopy
|
|
|
95 |
|
96 |
|
97 |
|
98 |
+
# Ссылка на файл CSS
|
99 |
+
css_url = "https://aihubyufi-aihub.static.hf.space/style.css"
|
100 |
+
|
101 |
+
# Получение CSS по ссылке
|
102 |
+
response = requests.get(css_url)
|
103 |
+
css = response.text
|
104 |
|
105 |
demo = gr.Interface(
|
106 |
fn=process_img,
|