Jobanjps commited on
Commit
233b42b
·
verified ·
1 Parent(s): a5d1ea5

Create index2.html

Browse files
Files changed (1) hide show
  1. templates/index2.html +23 -0
templates/index2.html ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from flask import Flask, render_template, request
2
+
3
+ app = Flask(__name__)
4
+
5
+ # Route to display the input form
6
+ @app.route('/')
7
+ def index():
8
+ return render_template('index.html')
9
+
10
+ # Route to handle form submission
11
+ @app.route('/submit', methods=['POST'])
12
+ def submit():
13
+ # Get the inputs from the form
14
+ input1 = request.form['input1']
15
+ input2 = request.form['input2']
16
+ input3 = request.form['input3']
17
+
18
+ # Here you would integrate your model or logic for processing the inputs
19
+ # For example, just returning the inputs for now
20
+ return f'You entered: {input1}, {input2}, {input3}'
21
+
22
+ if __name__ == '__main__':
23
+ app.run(debug=True)