Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -45,7 +45,10 @@ gatconv_model.load_state_dict(corrected_state_dict)
|
|
45 |
model_bert = SentenceTransformer("all-mpnet-base-v2")
|
46 |
|
47 |
# Ensure the DataFrame is loaded properly
|
48 |
-
|
|
|
|
|
|
|
49 |
|
50 |
# Generate GNN-based embeddings
|
51 |
with torch.no_grad():
|
|
|
45 |
model_bert = SentenceTransformer("all-mpnet-base-v2")
|
46 |
|
47 |
# Ensure the DataFrame is loaded properly
|
48 |
+
try:
|
49 |
+
df = pd.read_json("combined_data.json.gz", orient='records', lines=True, compression='gzip')
|
50 |
+
except Exception as e:
|
51 |
+
print(f"Error reading JSON file: {e}")
|
52 |
|
53 |
# Generate GNN-based embeddings
|
54 |
with torch.no_grad():
|