Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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[
|