gloignon commited on
Commit
f8825b7
·
verified ·
1 Parent(s): 47c5583

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -12,7 +12,8 @@ model = SentenceTransformer('all-MiniLM-L6-v2')
12
  # Modify the Gradio interface to accept a list of identifiers and texts
13
  def compute_pca(data):
14
  # data is expected to be a list of dictionaries with 'Identifier' and 'Text' keys
15
- df = pd.DataFrame(data)
 
16
 
17
  # Remove rows where 'Identifier' or 'Text' is empty or contains only whitespace
18
  valid_entries = df[
 
12
  # Modify the Gradio interface to accept a list of identifiers and texts
13
  def compute_pca(data):
14
  # data is expected to be a list of dictionaries with 'Identifier' and 'Text' keys
15
+ df = pd.DataFrame(data, columns=["Identifier", "Text"])
16
+
17
 
18
  # Remove rows where 'Identifier' or 'Text' is empty or contains only whitespace
19
  valid_entries = df[