Yash goyal commited on
Commit
762090d
·
verified ·
1 Parent(s): 8cff8cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -327,9 +327,10 @@ def result():
327
  report = session.get("report")
328
  if not report:
329
  return redirect(url_for("form"))
330
- # Pass the entire dictionary as 'result' to match the template
331
- return render_template(FORM_TEMPLATE, result=report, history_plot="/training_plot.png")
332
-
 
333
  @app.route("/download-report")
334
  def download_report():
335
  report = session.get("report")
 
327
  report = session.get("report")
328
  if not report:
329
  return redirect(url_for("form"))
330
+ # Change this line to render your result.html page
331
+ # The **report unpacks the dictionary into template variables
332
+ return render_template("result.html", **report)
333
+
334
  @app.route("/download-report")
335
  def download_report():
336
  report = session.get("report")