Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -29,8 +29,10 @@ EXAMPLE_QUERIES = [
|
|
29 |
EMBEDDING_MODEL_NAME = "allenai-specter"
|
30 |
LLM_MODEL_NAME = "Qwen/Qwen2-7B-Instruct"
|
31 |
PUBLICATIONS_TO_RETRIEVE = 3
|
|
|
|
|
32 |
# Load the dataset and convert to pandas
|
33 |
-
data = pandas.read_parquet(
|
34 |
|
35 |
# Filter out any publications without an abstract
|
36 |
abstract_is_null = [
|
|
|
29 |
EMBEDDING_MODEL_NAME = "allenai-specter"
|
30 |
LLM_MODEL_NAME = "Qwen/Qwen2-7B-Instruct"
|
31 |
PUBLICATIONS_TO_RETRIEVE = 3
|
32 |
+
PARQUET_URL = "hf://datasets/ccm/publications/data/train-00000-of-00001.parquet"
|
33 |
+
|
34 |
# Load the dataset and convert to pandas
|
35 |
+
data = pandas.read_parquet(PARQUET_URL)
|
36 |
|
37 |
# Filter out any publications without an abstract
|
38 |
abstract_is_null = [
|