Scezui commited on
Commit
8e59be6
1 Parent(s): 2ffc00e

responsive

Browse files
Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -104,8 +104,6 @@ def rename_file(old_name):
104
  # Call make_prediction automatically
105
  prediction_results = make_prediction(new_file_path)
106
  prediction_result = str(prediction_results)
107
- print(f"The prediction is: ", prediction_result)
108
-
109
  return render_template('extractor.html', uploaded_file=new_name, old_name=old_name, prediction_result=prediction_result)
110
  else:
111
  return 'File not found'
@@ -210,7 +208,6 @@ from flask import jsonify
210
  def download_csv():
211
  try:
212
  output_file_path = r"inferenced/output.csv" # path to output CSV file
213
-
214
  # Check if the file exists
215
  if os.path.exists(output_file_path):
216
  return send_file(output_file_path, as_attachment=True, download_name='output.csv')
 
104
  # Call make_prediction automatically
105
  prediction_results = make_prediction(new_file_path)
106
  prediction_result = str(prediction_results)
 
 
107
  return render_template('extractor.html', uploaded_file=new_name, old_name=old_name, prediction_result=prediction_result)
108
  else:
109
  return 'File not found'
 
208
  def download_csv():
209
  try:
210
  output_file_path = r"inferenced/output.csv" # path to output CSV file
 
211
  # Check if the file exists
212
  if os.path.exists(output_file_path):
213
  return send_file(output_file_path, as_attachment=True, download_name='output.csv')