Spaces:
Sleeping
Sleeping
WebashalarForML
commited on
Commit
•
7b2cad7
1
Parent(s):
e3cb94b
Update app.py
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ def index():
|
|
47 |
logging.info(f"Accessed index page, uploaded files: {uploaded_files}")
|
48 |
return render_template('index.html', uploaded_files=uploaded_files)
|
49 |
|
50 |
-
@app.route('/upload', methods=['POST'])
|
51 |
def upload_file():
|
52 |
if 'files' not in request.files:
|
53 |
flash('No file part')
|
@@ -108,7 +108,7 @@ def reset_upload():
|
|
108 |
flash('No file to remove.')
|
109 |
return redirect(url_for('index'))
|
110 |
|
111 |
-
@app.route('/process', methods=['POST'])
|
112 |
def process_file():
|
113 |
uploaded_files = session.get('uploaded_files', [])
|
114 |
if not uploaded_files:
|
|
|
47 |
logging.info(f"Accessed index page, uploaded files: {uploaded_files}")
|
48 |
return render_template('index.html', uploaded_files=uploaded_files)
|
49 |
|
50 |
+
@app.route('/upload', methods=['GET','POST'])
|
51 |
def upload_file():
|
52 |
if 'files' not in request.files:
|
53 |
flash('No file part')
|
|
|
108 |
flash('No file to remove.')
|
109 |
return redirect(url_for('index'))
|
110 |
|
111 |
+
@app.route('/process', methods=['GET','POST'])
|
112 |
def process_file():
|
113 |
uploaded_files = session.get('uploaded_files', [])
|
114 |
if not uploaded_files:
|