Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files- .idea/workspace.xml +21 -11
- __pycache__/app.cpython-311.pyc +0 -0
- __pycache__/chatgpt4uavs.cpython-311.pyc +0 -0
- __pycache__/fewshot.cpython-311.pyc +0 -0
- __pycache__/maps.cpython-311.pyc +0 -0
- __pycache__/prompts.cpython-311.pyc +0 -0
- app.py +51 -10
- server/uav_api.py +25 -0
- test/.pytest_cache/v/cache/lastfailed +27 -2
- test/.pytest_cache/v/cache/nodeids +53 -1
- test/__pycache__/test_chatgpt4uavs.cpython-311-pytest-7.4.0.pyc +0 -0
- test/__pycache__/test_fewshot.cpython-311-pytest-7.4.0.pyc +0 -0
.idea/workspace.xml
CHANGED
@@ -5,7 +5,9 @@
|
|
5 |
</component>
|
6 |
<component name="ChangeListManager">
|
7 |
<list default="true" id="fa28c5e7-7701-41dc-9f17-0b006dec0c27" name="Changes" comment="">
|
8 |
-
<change beforePath="$PROJECT_DIR$/
|
|
|
|
|
9 |
</list>
|
10 |
<option name="SHOW_DIALOG" value="false" />
|
11 |
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
@@ -45,7 +47,7 @@
|
|
45 |
"vue.rearranger.settings.migration": "true"
|
46 |
}
|
47 |
}</component>
|
48 |
-
<component name="RunManager" selected="Python
|
49 |
<configuration name="app" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true">
|
50 |
<module name="conversational_uav_explorer" />
|
51 |
<option name="INTERPRETER_OPTIONS" value="" />
|
@@ -90,21 +92,26 @@
|
|
90 |
<option name="INPUT_FILE" value="" />
|
91 |
<method v="2" />
|
92 |
</configuration>
|
93 |
-
<configuration name="
|
94 |
<module name="conversational_uav_explorer" />
|
95 |
<option name="INTERPRETER_OPTIONS" value="" />
|
96 |
<option name="PARENT_ENVS" value="true" />
|
|
|
|
|
|
|
97 |
<option name="SDK_HOME" value="" />
|
98 |
-
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR
|
99 |
<option name="IS_MODULE_SDK" value="true" />
|
100 |
<option name="ADD_CONTENT_ROOTS" value="true" />
|
101 |
<option name="ADD_SOURCE_ROOTS" value="true" />
|
102 |
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
|
103 |
-
<option name="
|
104 |
-
<option name="
|
105 |
-
<option name="
|
106 |
-
<option name="
|
107 |
-
<option name="
|
|
|
|
|
108 |
<method v="2" />
|
109 |
</configuration>
|
110 |
<configuration name="pytest for test_fewshot.test_multiple_actions" type="tests" factoryName="py.test" temporary="true" nameIsGenerated="true">
|
@@ -143,11 +150,11 @@
|
|
143 |
</configuration>
|
144 |
<recent_temporary>
|
145 |
<list>
|
146 |
-
<item itemvalue="Python tests.pytest in test_fewshot.py" />
|
147 |
<item itemvalue="Python.app" />
|
|
|
|
|
148 |
<item itemvalue="Python.maps" />
|
149 |
<item itemvalue="Python tests.pytest for test_fewshot.test_multiple_actions" />
|
150 |
-
<item itemvalue="Python tests.pytest for test_fewshot.test_action_and_location" />
|
151 |
</list>
|
152 |
</recent_temporary>
|
153 |
</component>
|
@@ -181,6 +188,8 @@
|
|
181 |
<workItem from="1690061425992" duration="406000" />
|
182 |
<workItem from="1690062126029" duration="3577000" />
|
183 |
<workItem from="1690068665233" duration="59000" />
|
|
|
|
|
184 |
</task>
|
185 |
<servers />
|
186 |
</component>
|
@@ -214,6 +223,7 @@
|
|
214 |
<SUITE FILE_PATH="coverage/conversational_uav_explorer$pytest_for_test_fewshot_test_multiple_actions.coverage" NAME="pytest for test_fewshot.test_multiple_actions Coverage Results" MODIFIED="1690037995937" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/test" />
|
215 |
<SUITE FILE_PATH="coverage/conversational_uav_explorer$pytest_for_test_fewshot_test_action_and_location.coverage" NAME="pytest for test_fewshot.test_action_and_location Coverage Results" MODIFIED="1690016118401" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/test" />
|
216 |
<SUITE FILE_PATH="coverage/conversational_uav_explorer$pytest_in_test_fewshot_py.coverage" NAME="pytest in test_fewshot.py Coverage Results" MODIFIED="1690064452122" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/test" />
|
|
|
217 |
<SUITE FILE_PATH="coverage/conversational_uav_explorer$pytest_for_test_fewshot_test_action_and_location_synonyms.coverage" NAME="pytest for test_fewshot.test_action_and_location_synonyms Coverage Results" MODIFIED="1690016083172" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/test" />
|
218 |
<SUITE FILE_PATH="coverage/conversational_uav_explorer$pytest_for_test_fewshot_test_invalid_command2.coverage" NAME="pytest for test_fewshot.test_invalid_command2 Coverage Results" MODIFIED="1689919761343" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/test" />
|
219 |
<SUITE FILE_PATH="coverage/conversational_uav_explorer$gradio_theme.coverage" NAME="gradio_theme Coverage Results" MODIFIED="1690008184752" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" />
|
|
|
5 |
</component>
|
6 |
<component name="ChangeListManager">
|
7 |
<list default="true" id="fa28c5e7-7701-41dc-9f17-0b006dec0c27" name="Changes" comment="">
|
8 |
+
<change beforePath="$PROJECT_DIR$/app.py" beforeDir="false" afterPath="$PROJECT_DIR$/app.py" afterDir="false" />
|
9 |
+
<change beforePath="$PROJECT_DIR$/server/uav_api.py" beforeDir="false" afterPath="$PROJECT_DIR$/server/uav_api.py" afterDir="false" />
|
10 |
+
<change beforePath="$PROJECT_DIR$/uav_api.py" beforeDir="false" />
|
11 |
</list>
|
12 |
<option name="SHOW_DIALOG" value="false" />
|
13 |
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
|
47 |
"vue.rearranger.settings.migration": "true"
|
48 |
}
|
49 |
}</component>
|
50 |
+
<component name="RunManager" selected="Python.app">
|
51 |
<configuration name="app" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true">
|
52 |
<module name="conversational_uav_explorer" />
|
53 |
<option name="INTERPRETER_OPTIONS" value="" />
|
|
|
92 |
<option name="INPUT_FILE" value="" />
|
93 |
<method v="2" />
|
94 |
</configuration>
|
95 |
+
<configuration name="uav_api" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true">
|
96 |
<module name="conversational_uav_explorer" />
|
97 |
<option name="INTERPRETER_OPTIONS" value="" />
|
98 |
<option name="PARENT_ENVS" value="true" />
|
99 |
+
<envs>
|
100 |
+
<env name="PYTHONUNBUFFERED" value="1" />
|
101 |
+
</envs>
|
102 |
<option name="SDK_HOME" value="" />
|
103 |
+
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
|
104 |
<option name="IS_MODULE_SDK" value="true" />
|
105 |
<option name="ADD_CONTENT_ROOTS" value="true" />
|
106 |
<option name="ADD_SOURCE_ROOTS" value="true" />
|
107 |
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
|
108 |
+
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/uav_api.py" />
|
109 |
+
<option name="PARAMETERS" value="" />
|
110 |
+
<option name="SHOW_COMMAND_LINE" value="false" />
|
111 |
+
<option name="EMULATE_TERMINAL" value="false" />
|
112 |
+
<option name="MODULE_MODE" value="false" />
|
113 |
+
<option name="REDIRECT_INPUT" value="false" />
|
114 |
+
<option name="INPUT_FILE" value="" />
|
115 |
<method v="2" />
|
116 |
</configuration>
|
117 |
<configuration name="pytest for test_fewshot.test_multiple_actions" type="tests" factoryName="py.test" temporary="true" nameIsGenerated="true">
|
|
|
150 |
</configuration>
|
151 |
<recent_temporary>
|
152 |
<list>
|
|
|
153 |
<item itemvalue="Python.app" />
|
154 |
+
<item itemvalue="Python.uav_api" />
|
155 |
+
<item itemvalue="Python tests.pytest in test_fewshot.py" />
|
156 |
<item itemvalue="Python.maps" />
|
157 |
<item itemvalue="Python tests.pytest for test_fewshot.test_multiple_actions" />
|
|
|
158 |
</list>
|
159 |
</recent_temporary>
|
160 |
</component>
|
|
|
188 |
<workItem from="1690061425992" duration="406000" />
|
189 |
<workItem from="1690062126029" duration="3577000" />
|
190 |
<workItem from="1690068665233" duration="59000" />
|
191 |
+
<workItem from="1691001889072" duration="1298000" />
|
192 |
+
<workItem from="1691003416341" duration="16124000" />
|
193 |
</task>
|
194 |
<servers />
|
195 |
</component>
|
|
|
223 |
<SUITE FILE_PATH="coverage/conversational_uav_explorer$pytest_for_test_fewshot_test_multiple_actions.coverage" NAME="pytest for test_fewshot.test_multiple_actions Coverage Results" MODIFIED="1690037995937" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/test" />
|
224 |
<SUITE FILE_PATH="coverage/conversational_uav_explorer$pytest_for_test_fewshot_test_action_and_location.coverage" NAME="pytest for test_fewshot.test_action_and_location Coverage Results" MODIFIED="1690016118401" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/test" />
|
225 |
<SUITE FILE_PATH="coverage/conversational_uav_explorer$pytest_in_test_fewshot_py.coverage" NAME="pytest in test_fewshot.py Coverage Results" MODIFIED="1690064452122" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/test" />
|
226 |
+
<SUITE FILE_PATH="coverage/conversational_uav_explorer$uav_api.coverage" NAME="uav_api Coverage Results" MODIFIED="1691100356266" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" />
|
227 |
<SUITE FILE_PATH="coverage/conversational_uav_explorer$pytest_for_test_fewshot_test_action_and_location_synonyms.coverage" NAME="pytest for test_fewshot.test_action_and_location_synonyms Coverage Results" MODIFIED="1690016083172" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/test" />
|
228 |
<SUITE FILE_PATH="coverage/conversational_uav_explorer$pytest_for_test_fewshot_test_invalid_command2.coverage" NAME="pytest for test_fewshot.test_invalid_command2 Coverage Results" MODIFIED="1689919761343" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/test" />
|
229 |
<SUITE FILE_PATH="coverage/conversational_uav_explorer$gradio_theme.coverage" NAME="gradio_theme Coverage Results" MODIFIED="1690008184752" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" />
|
__pycache__/app.cpython-311.pyc
CHANGED
Binary files a/__pycache__/app.cpython-311.pyc and b/__pycache__/app.cpython-311.pyc differ
|
|
__pycache__/chatgpt4uavs.cpython-311.pyc
CHANGED
Binary files a/__pycache__/chatgpt4uavs.cpython-311.pyc and b/__pycache__/chatgpt4uavs.cpython-311.pyc differ
|
|
__pycache__/fewshot.cpython-311.pyc
CHANGED
Binary files a/__pycache__/fewshot.cpython-311.pyc and b/__pycache__/fewshot.cpython-311.pyc differ
|
|
__pycache__/maps.cpython-311.pyc
CHANGED
Binary files a/__pycache__/maps.cpython-311.pyc and b/__pycache__/maps.cpython-311.pyc differ
|
|
__pycache__/prompts.cpython-311.pyc
CHANGED
Binary files a/__pycache__/prompts.cpython-311.pyc and b/__pycache__/prompts.cpython-311.pyc differ
|
|
app.py
CHANGED
@@ -3,37 +3,78 @@ import gradio as gr
|
|
3 |
from prompts import prompt_chat_response
|
4 |
from fewshot import FewShot4UAVs
|
5 |
|
6 |
-
|
7 |
fewshot = FewShot4UAVs()
|
8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
|
10 |
-
def transcribe(audio):
|
11 |
-
messages = [
|
12 |
-
{"role": "system",
|
13 |
-
"content": prompt_chat_response}
|
14 |
-
]
|
15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
audio_file = open(audio, "rb")
|
17 |
transcript = openai.Audio.transcribe("whisper-1", audio_file)
|
|
|
|
|
|
|
|
|
|
|
18 |
|
19 |
-
original_transcript = transcript["text"]
|
20 |
-
messages.append({"role": "user", "content": original_transcript, "name": "Operator"})
|
21 |
|
22 |
-
|
|
|
23 |
messages.append({"role": "function", "content": formatted_command_text, "name": "UAV"})
|
|
|
24 |
|
|
|
|
|
25 |
response = openai.ChatCompletion.create(
|
26 |
model="gpt-3.5-turbo",
|
27 |
messages=messages
|
28 |
)
|
29 |
-
|
30 |
uav_response = response["choices"][0]["message"]["content"]
|
31 |
messages.append({"role": "assistant", "content": uav_response, "name": "Assistant"})
|
|
|
|
|
32 |
|
|
|
33 |
chat_transcript = ""
|
34 |
for message in messages:
|
35 |
if message['role'] != 'system':
|
36 |
chat_transcript += f"{message['name']}: {message['content']} \n\n"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
|
38 |
return chat_transcript
|
39 |
|
|
|
3 |
from prompts import prompt_chat_response
|
4 |
from fewshot import FewShot4UAVs
|
5 |
|
|
|
6 |
fewshot = FewShot4UAVs()
|
7 |
|
8 |
+
"""def send_command(command, location=None):
|
9 |
+
url = f"http://url/{command}"
|
10 |
+
data = {}
|
11 |
+
if location:
|
12 |
+
data["location"] = location
|
13 |
+
response = requests.post(url, json=data)
|
14 |
+
return response.content
|
15 |
|
|
|
|
|
|
|
|
|
|
|
16 |
|
17 |
+
def parse_command(text):
|
18 |
+
tokens = re.split(' \t|\n|: ', text.lower())
|
19 |
+
print(tokens)
|
20 |
+
if len(tokens) >= 2:
|
21 |
+
return tokens[1]
|
22 |
+
else:
|
23 |
+
return 'none'"""
|
24 |
+
|
25 |
+
|
26 |
+
def transcribe_audio(audio):
|
27 |
audio_file = open(audio, "rb")
|
28 |
transcript = openai.Audio.transcribe("whisper-1", audio_file)
|
29 |
+
return transcript["text"]
|
30 |
+
|
31 |
+
|
32 |
+
def append_user_transcript(messages, user_transcript):
|
33 |
+
messages.append({"role": "user", "content": user_transcript, "name": "Operator"})
|
34 |
|
|
|
|
|
35 |
|
36 |
+
def append_formatted_command(messages, user_transcript):
|
37 |
+
formatted_command_text = fewshot.get_command(user_transcript)
|
38 |
messages.append({"role": "function", "content": formatted_command_text, "name": "UAV"})
|
39 |
+
return formatted_command_text
|
40 |
|
41 |
+
|
42 |
+
def append_uav_response(messages):
|
43 |
response = openai.ChatCompletion.create(
|
44 |
model="gpt-3.5-turbo",
|
45 |
messages=messages
|
46 |
)
|
|
|
47 |
uav_response = response["choices"][0]["message"]["content"]
|
48 |
messages.append({"role": "assistant", "content": uav_response, "name": "Assistant"})
|
49 |
+
return uav_response
|
50 |
+
|
51 |
|
52 |
+
def build_chat_transcript(messages):
|
53 |
chat_transcript = ""
|
54 |
for message in messages:
|
55 |
if message['role'] != 'system':
|
56 |
chat_transcript += f"{message['name']}: {message['content']} \n\n"
|
57 |
+
return chat_transcript
|
58 |
+
|
59 |
+
|
60 |
+
def transcribe(audio):
|
61 |
+
messages = [
|
62 |
+
{"role": "system",
|
63 |
+
"content": prompt_chat_response}
|
64 |
+
]
|
65 |
+
|
66 |
+
user_transcript = transcribe_audio(audio)
|
67 |
+
append_user_transcript(messages, user_transcript)
|
68 |
+
|
69 |
+
formatted_command_text = append_formatted_command(messages, user_transcript)
|
70 |
+
|
71 |
+
# turn on the below to invoke API
|
72 |
+
# command = parse_command(formatted_command_text)
|
73 |
+
# send_command(command)
|
74 |
+
|
75 |
+
uav_response = append_uav_response(messages, formatted_command_text)
|
76 |
+
|
77 |
+
chat_transcript = build_chat_transcript(messages)
|
78 |
|
79 |
return chat_transcript
|
80 |
|
server/uav_api.py
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from flask import Flask
|
2 |
+
from app import send_command
|
3 |
+
|
4 |
+
app = Flask(__name__)
|
5 |
+
|
6 |
+
|
7 |
+
@app.route('/goto/<location>', methods=['POST'])
|
8 |
+
def goto(location):
|
9 |
+
pass
|
10 |
+
|
11 |
+
|
12 |
+
@app.route('/land', methods=['POST'])
|
13 |
+
def land():
|
14 |
+
pass
|
15 |
+
|
16 |
+
@app.route('/takeoff', methods=['POST'])
|
17 |
+
def takeoff():
|
18 |
+
pass
|
19 |
+
|
20 |
+
@app.route('/takepicture/<location>', methods=['POST'])
|
21 |
+
def takepicture(location):
|
22 |
+
pass
|
23 |
+
|
24 |
+
if __name__ == '__main__':
|
25 |
+
app.run()
|
test/.pytest_cache/v/cache/lastfailed
CHANGED
@@ -1,5 +1,30 @@
|
|
1 |
{
|
2 |
"test_chatgpt4uavs.py::test_red_house": true,
|
3 |
-
"test_chatgpt4uavs.py": true,
|
4 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
}
|
|
|
1 |
{
|
2 |
"test_chatgpt4uavs.py::test_red_house": true,
|
3 |
+
"test_chatgpt4uavs.py::test_take_off": true,
|
4 |
+
"test_chatgpt4uavs.py::test_land": true,
|
5 |
+
"test_chatgpt4uavs.py::test_picture": true,
|
6 |
+
"test_chatgpt4uavs.py::test_snap_pic": true,
|
7 |
+
"test_chatgpt4uavs.py::test_purple_house": true,
|
8 |
+
"test_chatgpt4uavs.py::test_parking_garage": true,
|
9 |
+
"test_chatgpt4uavs.py::test_gym": true,
|
10 |
+
"test_chatgpt4uavs.py::test_cease_flight": true,
|
11 |
+
"test_chatgpt4uavs.py::test_stop_flight": true,
|
12 |
+
"test_chatgpt4uavs.py::test_lift_off": true,
|
13 |
+
"test_chatgpt4uavs.py::test_no_location1": true,
|
14 |
+
"test_chatgpt4uavs.py::test_no_location2": true,
|
15 |
+
"test_chatgpt4uavs.py::test_no_location3": true,
|
16 |
+
"test_fewshot.py::test_stop_flight1": true,
|
17 |
+
"test_fewshot.py::test_invalid_command2": true,
|
18 |
+
"test_fewshot.py::test_location_no_action4": true,
|
19 |
+
"test_fewshot.py::test_action_and_location_synonyms": true,
|
20 |
+
"test_fewshot.py::test_action_synonyms": true,
|
21 |
+
"test_fewshot.py::test_action_and_location": true,
|
22 |
+
"test_fewshot.py::test_multiple_actions": true,
|
23 |
+
"test_fewshot.py::test_multiple_actions1": true,
|
24 |
+
"test_fewshot.py::test_multiple_actions2": true,
|
25 |
+
"test_fewshot.py::test_multiple_actions3": true,
|
26 |
+
"test_fewshot.py::test_multiple_actions4": true,
|
27 |
+
"test_fewshot.py::test_multiple_actions5": true,
|
28 |
+
"test_fewshot.py::test_multiple_actions_and_locations1": true,
|
29 |
+
"test_fewshot.py::test_multiple_actions_and_locations2": true
|
30 |
}
|
test/.pytest_cache/v/cache/nodeids
CHANGED
@@ -1,4 +1,56 @@
|
|
1 |
[
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
"test_chatgpt4uavs.py::test_red_house",
|
3 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
]
|
|
|
1 |
[
|
2 |
+
"test_chatgpt4uavs.py::test_cease_flight",
|
3 |
+
"test_chatgpt4uavs.py::test_gym",
|
4 |
+
"test_chatgpt4uavs.py::test_land",
|
5 |
+
"test_chatgpt4uavs.py::test_lift_off",
|
6 |
+
"test_chatgpt4uavs.py::test_no_location1",
|
7 |
+
"test_chatgpt4uavs.py::test_no_location2",
|
8 |
+
"test_chatgpt4uavs.py::test_no_location3",
|
9 |
+
"test_chatgpt4uavs.py::test_parking_garage",
|
10 |
+
"test_chatgpt4uavs.py::test_picture",
|
11 |
+
"test_chatgpt4uavs.py::test_purple_house",
|
12 |
"test_chatgpt4uavs.py::test_red_house",
|
13 |
+
"test_chatgpt4uavs.py::test_snap_pic",
|
14 |
+
"test_chatgpt4uavs.py::test_stop_flight",
|
15 |
+
"test_chatgpt4uavs.py::test_take_off",
|
16 |
+
"test_fewshot.py::test_action_and_location",
|
17 |
+
"test_fewshot.py::test_action_and_location_synonyms",
|
18 |
+
"test_fewshot.py::test_action_synonyms",
|
19 |
+
"test_fewshot.py::test_cease_flight",
|
20 |
+
"test_fewshot.py::test_empty_input",
|
21 |
+
"test_fewshot.py::test_gym",
|
22 |
+
"test_fewshot.py::test_invalid_command",
|
23 |
+
"test_fewshot.py::test_invalid_command1",
|
24 |
+
"test_fewshot.py::test_invalid_command2",
|
25 |
+
"test_fewshot.py::test_land",
|
26 |
+
"test_fewshot.py::test_lift_off",
|
27 |
+
"test_fewshot.py::test_location_no_action",
|
28 |
+
"test_fewshot.py::test_location_no_action2",
|
29 |
+
"test_fewshot.py::test_location_no_action3",
|
30 |
+
"test_fewshot.py::test_location_no_action4",
|
31 |
+
"test_fewshot.py::test_multiple_actions",
|
32 |
+
"test_fewshot.py::test_multiple_actions1",
|
33 |
+
"test_fewshot.py::test_multiple_actions2",
|
34 |
+
"test_fewshot.py::test_multiple_actions3",
|
35 |
+
"test_fewshot.py::test_multiple_actions4",
|
36 |
+
"test_fewshot.py::test_multiple_actions5",
|
37 |
+
"test_fewshot.py::test_multiple_actions_and_locations",
|
38 |
+
"test_fewshot.py::test_multiple_actions_and_locations1",
|
39 |
+
"test_fewshot.py::test_multiple_actions_and_locations2",
|
40 |
+
"test_fewshot.py::test_no_location1",
|
41 |
+
"test_fewshot.py::test_no_location2",
|
42 |
+
"test_fewshot.py::test_no_location3",
|
43 |
+
"test_fewshot.py::test_no_location4",
|
44 |
+
"test_fewshot.py::test_parking_garage",
|
45 |
+
"test_fewshot.py::test_picture",
|
46 |
+
"test_fewshot.py::test_purple_house",
|
47 |
+
"test_fewshot.py::test_red_house",
|
48 |
+
"test_fewshot.py::test_snap_pic",
|
49 |
+
"test_fewshot.py::test_stop_flight",
|
50 |
+
"test_fewshot.py::test_stop_flight1",
|
51 |
+
"test_fewshot.py::test_take_off",
|
52 |
+
"test_fewshot.py::test_take_off_synonym",
|
53 |
+
"test_fewshot.py::test_two_go_to",
|
54 |
+
"test_fewshot.py::test_with_extra_words",
|
55 |
+
"test_fewshot.py::test_with_extra_words2"
|
56 |
]
|
test/__pycache__/test_chatgpt4uavs.cpython-311-pytest-7.4.0.pyc
CHANGED
Binary files a/test/__pycache__/test_chatgpt4uavs.cpython-311-pytest-7.4.0.pyc and b/test/__pycache__/test_chatgpt4uavs.cpython-311-pytest-7.4.0.pyc differ
|
|
test/__pycache__/test_fewshot.cpython-311-pytest-7.4.0.pyc
CHANGED
Binary files a/test/__pycache__/test_fewshot.cpython-311-pytest-7.4.0.pyc and b/test/__pycache__/test_fewshot.cpython-311-pytest-7.4.0.pyc differ
|
|