We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cac7942 commit 8b7ae43Copy full SHA for 8b7ae43
baselines/EntiGraph/entigraph.py
@@ -7,6 +7,8 @@
7
import asyncio
8
import argparse
9
from hashlib import md5
10
+
11
+from statsmodels.graphics.tukeyplot import results
12
from tqdm.asyncio import tqdm as tqdm_async
13
14
from baselines.EntiGraph.inference.devapi import gptqa
@@ -233,8 +235,7 @@ async def generate_qa_sft(content):
233
235
234
236
args = parser.parse_args()
237
- loop = asyncio.get_event_loop()
- results = loop.run_until_complete(generate_synthetic_data_for_document(args.input_file, args.data_type))
238
+ results = asyncio.run(generate_synthetic_data_for_document(args.input_file, args.data_type))
239
240
# Save results
241
with open(args.output_file, "w", encoding='utf-8') as f:
0 commit comments