AshDavid12 commited on
Commit
f05b2dd
·
1 Parent(s): 40cde13

deleted key

Browse files
Files changed (1) hide show
  1. infer.py +0 -4
infer.py CHANGED
@@ -30,7 +30,6 @@ class InputData(BaseModel):
30
  type: str
31
  data: Optional[str] = None # Used for blob input
32
  url: Optional[str] = None # Used for url input
33
- api_key: Optional[str] = None
34
 
35
 
36
  def download_file(url, max_size_bytes, output_filename, api_key=None):
@@ -84,9 +83,6 @@ async def transcribe(input_data: InputData):
84
  logging.error(f'Invalid datatype: {datatype}')
85
  raise HTTPException(status_code=400, detail=f"datatype should be 'blob' or 'url', but is {datatype} instead.")
86
 
87
- api_key = input_data.api_key
88
- logging.debug(f'API key: {api_key}')
89
-
90
  with tempfile.TemporaryDirectory() as d:
91
  audio_file = f'{d}/audio.mp3'
92
  logging.debug(f'Created temporary directory: {d}')
 
30
  type: str
31
  data: Optional[str] = None # Used for blob input
32
  url: Optional[str] = None # Used for url input
 
33
 
34
 
35
  def download_file(url, max_size_bytes, output_filename, api_key=None):
 
83
  logging.error(f'Invalid datatype: {datatype}')
84
  raise HTTPException(status_code=400, detail=f"datatype should be 'blob' or 'url', but is {datatype} instead.")
85
 
 
 
 
86
  with tempfile.TemporaryDirectory() as d:
87
  audio_file = f'{d}/audio.mp3'
88
  logging.debug(f'Created temporary directory: {d}')