Spaces:
Sleeping
Sleeping
update app simulator
Browse files- app.py +1 -1
- prompts.py +1 -0
app.py
CHANGED
@@ -7,7 +7,7 @@ import random
|
|
7 |
import os
|
8 |
os.environ["TOKENIZERS_PARALLELISM"] = "false"
|
9 |
|
10 |
-
openai_api_key = os.getenv("OPENAI_API_KEY")
|
11 |
|
12 |
|
13 |
class AppSimulator:
|
|
|
7 |
import os
|
8 |
os.environ["TOKENIZERS_PARALLELISM"] = "false"
|
9 |
|
10 |
+
openai_api_key = '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'#os.getenv("OPENAI_API_KEY")
|
11 |
|
12 |
|
13 |
class AppSimulator:
|
prompts.py
CHANGED
@@ -40,6 +40,7 @@ Please provide only one choice per turn.
|
|
40 |
4. Ensure there is always a button that allow user to do nothing.
|
41 |
5. Ensure the action type is a single word, such as ‘type’ or ‘click.’ If the action type is not a single word, convert it to a single word. For example, type(SUMMER, apply) should be transformed to type.
|
42 |
6. Group similar action types under ‘type’ and display them as ‘type’ (e.g., display ‘input’ or ‘search’ as ‘type’).
|
|
|
43 |
"""
|
44 |
return system_prompt
|
45 |
|
|
|
40 |
4. Ensure there is always a button that allow user to do nothing.
|
41 |
5. Ensure the action type is a single word, such as ‘type’ or ‘click.’ If the action type is not a single word, convert it to a single word. For example, type(SUMMER, apply) should be transformed to type.
|
42 |
6. Group similar action types under ‘type’ and display them as ‘type’ (e.g., display ‘input’ or ‘search’ as ‘type’).
|
43 |
+
7. Mimic the real {app_name} scenario as much as possible.
|
44 |
"""
|
45 |
return system_prompt
|
46 |
|