Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -42,10 +42,12 @@ def generate(description, model, max_tokens):
|
|
42 |
return f"**Ошибка запроса!**\n\n```\n{e}\n```", f"Ошибка запроса!\n\n{e}"
|
43 |
|
44 |
|
45 |
-
#
|
46 |
-
|
47 |
-
|
48 |
-
|
|
|
|
|
49 |
|
50 |
# ui
|
51 |
with gr.Blocks(css=css) as demo:
|
|
|
42 |
return f"**Ошибка запроса!**\n\n```\n{e}\n```", f"Ошибка запроса!\n\n{e}"
|
43 |
|
44 |
|
45 |
+
# Ссылка на файл CSS
|
46 |
+
css_url = "https://aihubyufi-aihub.static.hf.space/style.css"
|
47 |
+
|
48 |
+
# Получение CSS по ссылке
|
49 |
+
response = requests.get(css_url)
|
50 |
+
css = response.text
|
51 |
|
52 |
# ui
|
53 |
with gr.Blocks(css=css) as demo:
|