Method314 commited on
Commit
d78a290
·
verified ·
1 Parent(s): a5b0172

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -17
app.py CHANGED
@@ -181,10 +181,8 @@ def plot_candlestick_chart(data, ticker):
181
  # Get the current date
182
  current_date = datetime.now().strftime("%Y-%m-%d")
183
 
184
- # Custom CSS for button and input hover effects, and to style the header
185
  custom_css = """
186
- @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap');
187
-
188
  .center-text {
189
  text-align: center;
190
  }
@@ -192,24 +190,11 @@ custom_css = """
192
  #generate-button:hover, #ticker-input input:hover, #start-date-input input:hover, #end-date-input input:hover {
193
  background-color: #FFB3BA !important; /* Pastel red */
194
  }
195
-
196
- #header {
197
- font-family: 'Cinzel', serif;
198
- font-weight: 700;
199
- font-size: 2.8em;
200
- margin-bottom: 20px;
201
- color: #2C3E50; /* Dark blue-gray color */
202
- text-transform: uppercase;
203
- letter-spacing: 2px;
204
- text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
205
- }
206
  """
207
 
208
  # Create Gradio interface with custom Seafoam theme
209
  with gr.Blocks(theme=seafoam, title="Log Stock Charts", css=custom_css) as iface:
210
- # Use a centered, bold text header with custom font
211
- gr.Markdown("# Stock Log Charts", elem_id="header", elem_classes=["center-text"])
212
-
213
  gr.Markdown("Enter a stock ticker and date range to generate a chart.", elem_classes=["center-text"])
214
 
215
  with gr.Row():
 
181
  # Get the current date
182
  current_date = datetime.now().strftime("%Y-%m-%d")
183
 
184
+ # Custom CSS for button and input hover effects
185
  custom_css = """
 
 
186
  .center-text {
187
  text-align: center;
188
  }
 
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():