AshDavid12 commited on
Commit
91062af
·
1 Parent(s): ec5dec0
Files changed (1) hide show
  1. infer.py +5 -1
infer.py CHANGED
@@ -70,10 +70,14 @@ def download_file(url, max_size_bytes, output_filename, api_key=None):
70
  logging.error(f"Error downloading file: {e}")
71
  return False
72
 
 
 
 
 
73
 
74
  @app.post("/transcribe")
75
  async def transcribe(input_data: InputData):
76
- logging.INFO(f'Received transcription request with data: {input_data}')
77
  datatype = input_data.type
78
  if not datatype:
79
  logging.error('datatype field not provided')
 
70
  logging.error(f"Error downloading file: {e}")
71
  return False
72
 
73
+ @app.get("/")
74
+ async def read_root():
75
+ return {"message": "This is the Ivrit AI Streaming service."}
76
+
77
 
78
  @app.post("/transcribe")
79
  async def transcribe(input_data: InputData):
80
+ logging.info(f'Received transcription request with data: {input_data}')
81
  datatype = input_data.type
82
  if not datatype:
83
  logging.error('datatype field not provided')