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

Upload folder using huggingface_hub

Browse files
__pycache__/fewshot.cpython-311.pyc CHANGED
Binary files a/__pycache__/fewshot.cpython-311.pyc and b/__pycache__/fewshot.cpython-311.pyc differ
 
app.py CHANGED
@@ -3,7 +3,6 @@ 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
 
7
  fewshot = FewShot4UAVs()
8
 
chatgpt4uavs.py CHANGED
@@ -6,8 +6,6 @@ from langchain.chains import LLMChain
6
  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)
 
6
  from langchain.chains import SimpleSequentialChain
7
  from prompts import prompt_transcribe, prompt_command
8
 
 
 
9
 
10
  # Initializing OpenAI as the large language model
11
  llm = OpenAI(temperature=0.0)
commands.txt CHANGED
@@ -1 +1,2 @@
1
 
 
 
1
 
2
+ GOTO Yellow House
fewshot.py CHANGED
@@ -10,7 +10,6 @@ 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
  self.llm = OpenAI(model_name="text-davinci-003", temperature=0.0)
14
 
15
  def get_transcription(self, text):