paopaoka3325 commited on
Commit
5803605
·
1 Parent(s): 9b89a02

Add application files

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -71,6 +71,9 @@ def greet(name1, name2):
71
  # Convert the key-value pairs into a table format (a list of lists)
72
  df_pred = pd.DataFrame(key_value_pairs, columns = ["Ontology Attribute", "Value"]).iloc[:19,:]
73
 
 
 
 
74
  # Save the CSV data to a temporary file
75
  with tempfile.NamedTemporaryFile(delete=False, suffix=".csv") as temp_file:
76
  df_pred.to_csv(temp_file.name, index=False)
 
71
  # Convert the key-value pairs into a table format (a list of lists)
72
  df_pred = pd.DataFrame(key_value_pairs, columns = ["Ontology Attribute", "Value"]).iloc[:19,:]
73
 
74
+ # Convert the DataFrame to an HTML string
75
+ html_output = df_pred.to_html()
76
+
77
  # Save the CSV data to a temporary file
78
  with tempfile.NamedTemporaryFile(delete=False, suffix=".csv") as temp_file:
79
  df_pred.to_csv(temp_file.name, index=False)