Spaces:
Sleeping
Sleeping
etadevosyan
commited on
Commit
·
22356a6
1
Parent(s):
1f9b964
Creating blank json file
Browse files
app.py
CHANGED
@@ -12,6 +12,8 @@ data = prepare_data()
|
|
12 |
HF_TOKEN = os.getenv('HF_TOKEN')
|
13 |
hf_writer = gr.HuggingFaceDatasetSaver(HF_TOKEN, "budu_search_data_new")
|
14 |
|
|
|
|
|
15 |
def search_handler(query: str):
|
16 |
results, exact_results = (
|
17 |
search_bm25(query, data),
|
|
|
12 |
HF_TOKEN = os.getenv('HF_TOKEN')
|
13 |
hf_writer = gr.HuggingFaceDatasetSaver(HF_TOKEN, "budu_search_data_new")
|
14 |
|
15 |
+
with open('non_flagged_queries.json', 'w',encoding='utf8') as fout:
|
16 |
+
json.dump({}, fout,ensure_ascii=False,indent=4)
|
17 |
def search_handler(query: str):
|
18 |
results, exact_results = (
|
19 |
search_bm25(query, data),
|