mobenta commited on
Commit
72f515a
·
verified ·
1 Parent(s): ff010a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -2
app.py CHANGED
@@ -196,9 +196,25 @@ def gradio_interface(ticker1, ticker2, ticker3, ticker4, start_date, end_date, q
196
  logging.error(f"Error in Gradio interface: {e}")
197
  return f"Error processing image or query: {e}", None
198
 
199
- def gradio_app():
200
  with gr.Blocks() as demo:
201
- gr.Markdown("## Stock Analysis Dashboard")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
202
 
203
  with gr.Row():
204
  ticker1 = gr.Textbox(label="Primary Ticker", value="GC=F")
 
196
  logging.error(f"Error in Gradio interface: {e}")
197
  return f"Error processing image or query: {e}", None
198
 
199
+ ef gradio_app():
200
  with gr.Blocks() as demo:
201
+ gr.Markdown("""
202
+ ## 📈Stock Analysis Dashboard
203
+
204
+ This application provides a comprehensive stock analysis tool that allows users to input up to four stock tickers, specify date ranges, and select various financial indicators. The core functionalities include:
205
+
206
+ 1. **Data Fetching and Chart Creation**: Historical stock data is fetched from Yahoo Finance, and candlestick charts are generated with optional financial indicators like RSI, SMA, VWAP, and Bollinger Bands.
207
+
208
+ 2. **Text Analysis and Insights Generation**: The application uses a pre-trained model based on the **Paligema** architecture to analyze the input chart and text query, generating insightful analysis based on the provided financial data and context.
209
+
210
+ 3. **User Interface**: Users can interactively select stocks, date ranges, intervals, and indicators. The app also supports the analysis of single tickers or comparative analysis across multiple tickers.
211
+
212
+ 4. **Logging and Debugging**: Detailed logging helps in debugging and tracking the application's processes.
213
+
214
+ 5. **Enhanced Image Processing**: The app adds financial metrics and annotations to the generated charts, ensuring clear presentation of data.
215
+
216
+ This tool leverages the Paligema model to provide detailed insights into stock market trends, offering an interactive and educational experience for users.
217
+ """)
218
 
219
  with gr.Row():
220
  ticker1 = gr.Textbox(label="Primary Ticker", value="GC=F")