Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -166,7 +166,23 @@ def gradio_interface(ticker1, ticker2, ticker3, ticker4, start_date, end_date, q
|
|
166 |
|
167 |
def gradio_app():
|
168 |
with gr.Blocks() as demo:
|
169 |
-
gr.Markdown("
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
170 |
|
171 |
with gr.Row():
|
172 |
ticker1 = gr.Textbox(label="Primary Ticker", value="GC=F")
|
|
|
166 |
|
167 |
def gradio_app():
|
168 |
with gr.Blocks() as demo:
|
169 |
+
gr.Markdown("""
|
170 |
+
## 📈Stock Analysis Dashboard
|
171 |
+
|
172 |
+
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:
|
173 |
+
|
174 |
+
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.
|
175 |
+
|
176 |
+
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.
|
177 |
+
|
178 |
+
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.
|
179 |
+
|
180 |
+
4. **Logging and Debugging**: Detailed logging helps in debugging and tracking the application's processes.
|
181 |
+
|
182 |
+
5. **Enhanced Image Processing**: The app adds financial metrics and annotations to the generated charts, ensuring clear presentation of data.
|
183 |
+
|
184 |
+
This tool leverages the Paligema model to provide detailed insights into stock market trends, offering an interactive and educational experience for users.
|
185 |
+
""")
|
186 |
|
187 |
with gr.Row():
|
188 |
ticker1 = gr.Textbox(label="Primary Ticker", value="GC=F")
|