paopaoka3325 commited on
Commit
7b6e922
·
1 Parent(s): 19b8053

Add application files

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -73,6 +73,9 @@ def greet(name1, name2):
73
 
74
  html_output = df_pred.to_html()
75
 
 
 
 
76
  # Save the CSV data to a temporary file
77
  with tempfile.NamedTemporaryFile(delete=False, suffix=".csv") as temp_file:
78
  df_pred.to_csv(temp_file.name, index=False)
 
73
 
74
  html_output = df_pred.to_html()
75
 
76
+ # Add an id to the HTML table for reference in the JavaScript function
77
+ html_output = html_output.replace("<table ", "<table id='output-table' ")
78
+
79
  # Save the CSV data to a temporary file
80
  with tempfile.NamedTemporaryFile(delete=False, suffix=".csv") as temp_file:
81
  df_pred.to_csv(temp_file.name, index=False)