ccibeekeoc42 commited on
Commit
38919d9
·
verified ·
1 Parent(s): 42d45f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -45,7 +45,7 @@ def generate_llm_response(text, model_id="ccibeekeoc42/Llama3.1-8b-base-SFT-2024
45
  ],
46
  top_p=0.3,
47
  temperature=1,
48
- max_tokens=80,
49
  stream=True,
50
  seed=None,
51
  stop=None,
@@ -226,7 +226,7 @@ def speech_to_speech_translation(audio):
226
  synthesised_speech = (synthesised_speech.numpy() * max_range).astype(np.int16)
227
  print("Speech Synthesis Completed~~~~~~~~~~~~~~~~~~~")
228
 
229
- return transcribed_text, (16000, synthesised_speech), llm_response
230
 
231
 
232
  # Gradio Demo
 
45
  ],
46
  top_p=0.3,
47
  temperature=1,
48
+ max_tokens=150,
49
  stream=True,
50
  seed=None,
51
  stop=None,
 
226
  synthesised_speech = (synthesised_speech.numpy() * max_range).astype(np.int16)
227
  print("Speech Synthesis Completed~~~~~~~~~~~~~~~~~~~")
228
 
229
+ return transcribed_text, llm_response, (16000, synthesised_speech)
230
 
231
 
232
  # Gradio Demo