sachin commited on
Commit
e0e2a5b
·
1 Parent(s): f238ccb
Files changed (1) hide show
  1. src/server/main.py +3 -3
src/server/main.py CHANGED
@@ -809,8 +809,8 @@ async def speech_to_speech(
809
  # Step 2: Process text with chat endpoint
810
  chat_request = ChatRequest(
811
  prompt=transcription.text,
812
- src_lang=f"{language}_Knda", # Assuming script for Indian languages
813
- tgt_lang=f"{language}_Knda"
814
  )
815
  processed_text = await chat(Request(), chat_request)
816
  logger.info(f"Processed text: {processed_text.response}")
@@ -829,7 +829,7 @@ async def speech_to_speech(
829
  class BatchTranscriptionResponse(BaseModel):
830
  transcriptions: List[str]
831
 
832
-
833
 
834
  if __name__ == "__main__":
835
  parser = argparse.ArgumentParser(description="Run the FastAPI server.")
 
809
  # Step 2: Process text with chat endpoint
810
  chat_request = ChatRequest(
811
  prompt=transcription.text,
812
+ src_lang="kn_Knda", # Assuming script for Indian languages
813
+ tgt_lang="kn_Knda"
814
  )
815
  processed_text = await chat(Request(), chat_request)
816
  logger.info(f"Processed text: {processed_text.response}")
 
829
  class BatchTranscriptionResponse(BaseModel):
830
  transcriptions: List[str]
831
 
832
+ import json
833
 
834
  if __name__ == "__main__":
835
  parser = argparse.ArgumentParser(description="Run the FastAPI server.")