Rooni commited on
Commit
2e4a93b
·
verified ·
1 Parent(s): 84240eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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://aihubyufi-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
- 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: