Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -210,6 +210,20 @@ response = requests.get(css_url)
|
|
210 |
css = response.text
|
211 |
|
212 |
with gr.Blocks(css=css) as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
213 |
with gr.Row():
|
214 |
with gr.Accordion(label="Модель", open=False):
|
215 |
model = gr.Radio(interactive=True, value="absolutereality_v181.safetensors [3d9d4d2b]", show_label=False, choices=prodia_client.list_models())
|
|
|
210 |
css = response.text
|
211 |
|
212 |
with gr.Blocks(css=css) as demo:
|
213 |
+
# Вставка JavaScript для динамической загрузки CSS
|
214 |
+
gr.HTML(
|
215 |
+
"""
|
216 |
+
<script>
|
217 |
+
var head = document.getElementsByTagName('head')[0];
|
218 |
+
var link = document.createElement('link');
|
219 |
+
link.rel = 'stylesheet';
|
220 |
+
link.type = 'text/css';
|
221 |
+
link.href = 'https://aihubyufi-aihub.static.hf.space/style.css'; // URL вашего CSS
|
222 |
+
head.appendChild(link);
|
223 |
+
</script>
|
224 |
+
"""
|
225 |
+
)
|
226 |
+
|
227 |
with gr.Row():
|
228 |
with gr.Accordion(label="Модель", open=False):
|
229 |
model = gr.Radio(interactive=True, value="absolutereality_v181.safetensors [3d9d4d2b]", show_label=False, choices=prodia_client.list_models())
|