Spaces:
Sleeping
Sleeping
record result update
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ import os
|
|
8 |
import re
|
9 |
os.environ["TOKENIZERS_PARALLELISM"] = "false"
|
10 |
|
11 |
-
openai_api_key = os.getenv("OPENAI_API_KEY")
|
12 |
|
13 |
task_completed = 0
|
14 |
task_completed_steps = None
|
@@ -48,8 +48,8 @@ class AppSimulator:
|
|
48 |
human_result_url = "jjz5463/simulator_human_result"
|
49 |
synthetic_tasks = load_dataset(human_result_url, app_name, split='train')
|
50 |
|
51 |
-
incomplete_tasks = synthetic_tasks.filter(is_task_incomplete
|
52 |
-
give_up_tasks = synthetic_tasks.filter(is_task_given_up
|
53 |
if len(incomplete_tasks) > 0:
|
54 |
incomplete_task = incomplete_tasks[0]
|
55 |
task = incomplete_task["tasks"]
|
|
|
8 |
import re
|
9 |
os.environ["TOKENIZERS_PARALLELISM"] = "false"
|
10 |
|
11 |
+
openai_api_key = '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'#os.getenv("OPENAI_API_KEY")
|
12 |
|
13 |
task_completed = 0
|
14 |
task_completed_steps = None
|
|
|
48 |
human_result_url = "jjz5463/simulator_human_result"
|
49 |
synthetic_tasks = load_dataset(human_result_url, app_name, split='train')
|
50 |
|
51 |
+
incomplete_tasks = synthetic_tasks.filter(is_task_incomplete)
|
52 |
+
give_up_tasks = synthetic_tasks.filter(is_task_given_up)
|
53 |
if len(incomplete_tasks) > 0:
|
54 |
incomplete_task = incomplete_tasks[0]
|
55 |
task = incomplete_task["tasks"]
|