Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -118,7 +118,12 @@ def process_image(
|
|
| 118 |
|
| 119 |
return gr.update(value=generated_image), result[1]
|
| 120 |
|
|
|
|
|
|
|
| 121 |
|
|
|
|
|
|
|
|
|
|
| 122 |
|
| 123 |
with gr.Blocks(css=css) as demo:
|
| 124 |
with gr.Column(elem_id="col-container"):
|
|
|
|
| 118 |
|
| 119 |
return gr.update(value=generated_image), result[1]
|
| 120 |
|
| 121 |
+
# Ссылка на файл CSS
|
| 122 |
+
css_url = "https://neurixyufi-aihub.static.hf.space/style.css"
|
| 123 |
|
| 124 |
+
# Получение CSS по ссылке
|
| 125 |
+
response = requests.get(css_url)
|
| 126 |
+
css = response.text + " .gradio-container{max-width: 700px !important} h1{text-align:center} #col-container { margin: 0 auto; max-width: 960px; }"
|
| 127 |
|
| 128 |
with gr.Blocks(css=css) as demo:
|
| 129 |
with gr.Column(elem_id="col-container"):
|