kdamevski commited on
Commit
3a856a4
·
1 Parent(s): a04d56b

Upload folder using huggingface_hub

Browse files
.gitignore CHANGED
@@ -1,3 +1,4 @@
 
1
  __pycache__
2
  .rasa
3
  *.tar.gz
 
1
+ commands.txt
2
  __pycache__
3
  .rasa
4
  *.tar.gz
__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,7 +3,7 @@ import gradio as gr
3
  from prompts import prompt_chat_response
4
  from fewshot import FewShot4UAVs
5
 
6
- openai.api_key = "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"
7
 
8
  fewshot = FewShot4UAVs()
9
 
 
3
  from prompts import prompt_chat_response
4
  from fewshot import FewShot4UAVs
5
 
6
+ openai.api_key = "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"
7
 
8
  fewshot = FewShot4UAVs()
9
 
chatgpt4uavs.py CHANGED
@@ -7,7 +7,7 @@ from langchain.chains import SimpleSequentialChain
7
  from prompts import prompt_transcribe, prompt_command
8
 
9
  # API Key
10
- os.environ["OPENAI_API_KEY"] = "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"
11
 
12
  # Initializing OpenAI as the large language model
13
  llm = OpenAI(temperature=0.0)
 
7
  from prompts import prompt_transcribe, prompt_command
8
 
9
  # API Key
10
+ os.environ["OPENAI_API_KEY"] = "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"
11
 
12
  # Initializing OpenAI as the large language model
13
  llm = OpenAI(temperature=0.0)
fewshot.py CHANGED
@@ -10,7 +10,7 @@ from prompts import prompt_transcribe, prompt_command, examples_few_shot
10
  class FewShot4UAVs:
11
 
12
  def __init__(self) -> None:
13
- os.environ["OPENAI_API_KEY"] = "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"
14
  self.llm = OpenAI(model_name="text-davinci-003", temperature=0.0)
15
 
16
  def get_transcription(self, text):
 
10
  class FewShot4UAVs:
11
 
12
  def __init__(self) -> None:
13
+ os.environ["OPENAI_API_KEY"] = "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"
14
  self.llm = OpenAI(model_name="text-davinci-003", temperature=0.0)
15
 
16
  def get_transcription(self, text):
test/.pytest_cache/v/cache/lastfailed CHANGED
@@ -1,30 +1,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
  }
 
1
  {
2
  "test_chatgpt4uavs.py::test_red_house": true,
3
+ "test_chatgpt4uavs.py": true,
4
+ "test_fewshot.py": true
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  }
test/.pytest_cache/v/cache/nodeids CHANGED
@@ -1,56 +1,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
  ]
 
1
  [
 
 
 
 
 
 
 
 
 
 
2
  "test_chatgpt4uavs.py::test_red_house",
3
+ "test_fewshot.py::test_red_house"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  ]
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