roshcheeku commited on
Commit
537ee0c
·
verified ·
1 Parent(s): 2595f74

Rename templates to templates/index.html

Browse files
Files changed (2) hide show
  1. templates +0 -0
  2. templates/index.html +31 -0
templates DELETED
File without changes
templates/index.html ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <title>Stock Prediction Dashboard</title>
6
+ </head>
7
+ <body>
8
+ <h1>Stock Prediction</h1>
9
+ <form action="/predict" method="post">
10
+ <label for="symbol">Select a stock:</label>
11
+ <select name="symbol" id="symbol">
12
+ {% for stock in stocks %}
13
+ <option value="{{ stock }}">{{ stock }}</option>
14
+ {% endfor %}
15
+ </select><br><br>
16
+ <label><input type="checkbox" name="use_sentiment"> Use Sentiment Analysis</label><br><br>
17
+ <button type="submit">Predict</button>
18
+ </form>
19
+ <a href="/dashboard">View Dashboard</a> |
20
+ <a href="/sentiment">Sentiment Analysis</a>
21
+ {% with messages = get_flashed_messages(with_categories=true) %}
22
+ {% if messages %}
23
+ <ul>
24
+ {% for category, message in messages %}
25
+ <li class="{{ category }}">{{ message }}</li>
26
+ {% endfor %}
27
+ </ul>
28
+ {% endif %}
29
+ {% endwith %}
30
+ </body>
31
+ </html>