Method314 commited on
Commit
61be7bf
·
verified ·
1 Parent(s): 54ab3e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -183,19 +183,19 @@ current_date = datetime.now().strftime("%Y-%m-%d")
183
 
184
  # Custom CSS for button and input hover effects
185
  custom_css = """
186
- #generate-button:hover {
187
- background-color: #FFB3BA !important; /* Pastel red */
188
  }
189
 
190
- #ticker-input input:hover, #start-date-input input:hover, #end-date-input input:hover {
191
  background-color: #FFB3BA !important; /* Pastel red */
192
  }
193
  """
194
 
195
  # Create Gradio interface with custom Seafoam theme
196
- with gr.Blocks(theme=seafoam, title="Stock Charts", css=custom_css) as iface:
197
- gr.Markdown("# Stock Charts")
198
- gr.Markdown("Enter a stock ticker and date range to generate a chart.")
199
 
200
  with gr.Row():
201
  ticker = gr.Textbox(label="Stock Ticker", value="MSFT", elem_id="ticker-input")
 
183
 
184
  # Custom CSS for button and input hover effects
185
  custom_css = """
186
+ .center-text {
187
+ text-align: center;
188
  }
189
 
190
+ #generate-button:hover, #ticker-input input:hover, #start-date-input input:hover, #end-date-input input:hover {
191
  background-color: #FFB3BA !important; /* Pastel red */
192
  }
193
  """
194
 
195
  # Create Gradio interface with custom Seafoam theme
196
+ with gr.Blocks(theme=seafoam, title="Log Stock Charts", css=custom_css) as iface:
197
+ gr.Markdown("# Log Stock Charts", elem_classes=["center-text"])
198
+ gr.Markdown("Enter a stock ticker and date range to generate a chart.", elem_classes=["center-text"])
199
 
200
  with gr.Row():
201
  ticker = gr.Textbox(label="Stock Ticker", value="MSFT", elem_id="ticker-input")