Commit
·
8a4da40
1
Parent(s):
81afb0d
updated dressing of page
Browse files
app.py
CHANGED
|
@@ -258,10 +258,30 @@ demo.launch()
|
|
| 258 |
"""
|
| 259 |
|
| 260 |
with gr.Blocks() as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 261 |
output_summary = gr.Textbox(label="Prediction Summary", lines=6)
|
| 262 |
output_table = gr.Dataframe(headers=["Prediction For Date", "Actual Close", "Predicted Close", "% Error", "±MAPE Range"], label="Prediction Table (2025+)")
|
|
|
|
|
|
|
| 263 |
generate_btn = gr.Button("Generate")
|
| 264 |
-
|
| 265 |
generate_btn.click(fn=predict_stock, inputs=[], outputs=[output_summary, output_table])
|
| 266 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 267 |
demo.launch(share=True)
|
|
|
|
| 258 |
"""
|
| 259 |
|
| 260 |
with gr.Blocks() as demo:
|
| 261 |
+
# Title
|
| 262 |
+
gr.Markdown("## 📊 NVDA Stock Prediction Using Neural Networks")
|
| 263 |
+
|
| 264 |
+
# Outputs
|
| 265 |
output_summary = gr.Textbox(label="Prediction Summary", lines=6)
|
| 266 |
output_table = gr.Dataframe(headers=["Prediction For Date", "Actual Close", "Predicted Close", "% Error", "±MAPE Range"], label="Prediction Table (2025+)")
|
| 267 |
+
|
| 268 |
+
# Generate Button
|
| 269 |
generate_btn = gr.Button("Generate")
|
|
|
|
| 270 |
generate_btn.click(fn=predict_stock, inputs=[], outputs=[output_summary, output_table])
|
| 271 |
|
| 272 |
+
# External article link
|
| 273 |
+
gr.HTML("""<p style='margin-top: 20px;'><a href="https://prakashkota/blog3/" target="_blank">
|
| 274 |
+
👉 Read the full article here</a></p>""")
|
| 275 |
+
|
| 276 |
+
# Disclaimer paragraph
|
| 277 |
+
gr.HTML("""
|
| 278 |
+
<p style='font-size: 14px; color: gray; line-height: 1.5;'>
|
| 279 |
+
<strong>Disclaimer:</strong> The information provided in this article and through the linked prediction model is for educational and informational purposes only.
|
| 280 |
+
It does not constitute financial, investment, or trading advice, and should not be relied upon as such.<br><br>
|
| 281 |
+
Any decisions made based on the model's output are solely at the user’s own risk. I make no guarantees regarding the accuracy, completeness, or reliability of the predictions.
|
| 282 |
+
I am not responsible for any financial losses or gains resulting from the use of this model.<br><br>
|
| 283 |
+
Always consult with a licensed financial advisor before making any investment decisions.
|
| 284 |
+
</p>
|
| 285 |
+
""")
|
| 286 |
+
|
| 287 |
demo.launch(share=True)
|