jedick commited on
Commit
73bbe4a
·
1 Parent(s): 59eeb53

Remove custom CSS

Browse files
Files changed (1) hide show
  1. app.py +2 -10
app.py CHANGED
@@ -75,19 +75,11 @@ def prediction_to_df(prediction=None):
75
  my_theme = gr.Theme.from_hub("NoCrypt/miku")
76
  my_theme.set(body_background_fill="#FFFFFF", body_background_fill_dark="#000000")
77
 
78
- # Custom CSS to center content
79
- custom_css = """
80
- .center-content {
81
- text-align: center;
82
- display:block;
83
- }
84
- """
85
-
86
  # Define the HTML for Font Awesome
87
  font_awesome_html = '<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" rel="stylesheet">'
88
 
89
  # Gradio interface setup
90
- with gr.Blocks(theme=my_theme, css=custom_css, head=font_awesome_html) as demo:
91
 
92
  # Layout
93
  with gr.Row():
@@ -236,7 +228,7 @@ with gr.Blocks(theme=my_theme, css=custom_css, head=font_awesome_html) as demo:
236
  radio = gr.Radio(
237
  ["label", "barplot"], value="label", label="Prediction"
238
  )
239
- with gr.Accordion("Sources", open=False, elem_classes=["center_content"]):
240
  gr.Markdown(
241
  """
242
  #### *Capstone project*
 
75
  my_theme = gr.Theme.from_hub("NoCrypt/miku")
76
  my_theme.set(body_background_fill="#FFFFFF", body_background_fill_dark="#000000")
77
 
 
 
 
 
 
 
 
 
78
  # Define the HTML for Font Awesome
79
  font_awesome_html = '<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" rel="stylesheet">'
80
 
81
  # Gradio interface setup
82
+ with gr.Blocks(theme=my_theme, head=font_awesome_html) as demo:
83
 
84
  # Layout
85
  with gr.Row():
 
228
  radio = gr.Radio(
229
  ["label", "barplot"], value="label", label="Prediction"
230
  )
231
+ with gr.Accordion("Sources", open=False):
232
  gr.Markdown(
233
  """
234
  #### *Capstone project*