Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -50,14 +50,13 @@ def caption_image(image):
|
|
50 |
return f"Error: {response.status_code} - {response.text}"
|
51 |
|
52 |
# Ссылка на файл CSS (опционально)
|
53 |
-
css_url = "https://
|
54 |
|
55 |
try:
|
56 |
response = requests.get(css_url)
|
57 |
css = response.text + ".gradio-container{max-width: 700px !important} h1{text-align:center}"
|
58 |
except requests.exceptions.RequestException as e:
|
59 |
print(f"Warning: Could not load CSS from {css_url}: {e}")
|
60 |
-
css = ".gradio-container{max-width: 700px !important} h1{text-align:center}"
|
61 |
|
62 |
# Создание интерфейса Gradio
|
63 |
with gr.Blocks(css=css) as demo:
|
|
|
50 |
return f"Error: {response.status_code} - {response.text}"
|
51 |
|
52 |
# Ссылка на файл CSS (опционально)
|
53 |
+
css_url = "https://neurixyufi-aihub.static.hf.space/style.css"
|
54 |
|
55 |
try:
|
56 |
response = requests.get(css_url)
|
57 |
css = response.text + ".gradio-container{max-width: 700px !important} h1{text-align:center}"
|
58 |
except requests.exceptions.RequestException as e:
|
59 |
print(f"Warning: Could not load CSS from {css_url}: {e}")
|
|
|
60 |
|
61 |
# Создание интерфейса Gradio
|
62 |
with gr.Blocks(css=css) as demo:
|