Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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=
|
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)
|
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
|