Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,6 @@ import gradio as gr
|
|
| 2 |
from huggingface_hub import InferenceClient
|
| 3 |
|
| 4 |
|
| 5 |
-
#client = InferenceClient("meta-llama/Meta-Llama-3-8B-Instruct")
|
| 6 |
client = InferenceClient("google/gemma-2-27b-it")
|
| 7 |
|
| 8 |
|
|
@@ -37,7 +36,6 @@ async function start_multi_line_tts() {
|
|
| 37 |
console.log(tts_text)
|
| 38 |
if (tts_text!=""){
|
| 39 |
await window.MatchaTTSEn(tts_text)
|
| 40 |
-
console.log("await")
|
| 41 |
}
|
| 42 |
|
| 43 |
|
|
@@ -52,7 +50,7 @@ function reset_tts_text(){
|
|
| 52 |
tts_texts = []
|
| 53 |
}
|
| 54 |
function replaceSpecialChars(text) {
|
| 55 |
-
const pattern = /[^a-zA-Z0-9,.!?-_]/g;
|
| 56 |
return text.replace(pattern, ' ');
|
| 57 |
}
|
| 58 |
|
|
|
|
| 2 |
from huggingface_hub import InferenceClient
|
| 3 |
|
| 4 |
|
|
|
|
| 5 |
client = InferenceClient("google/gemma-2-27b-it")
|
| 6 |
|
| 7 |
|
|
|
|
| 36 |
console.log(tts_text)
|
| 37 |
if (tts_text!=""){
|
| 38 |
await window.MatchaTTSEn(tts_text)
|
|
|
|
| 39 |
}
|
| 40 |
|
| 41 |
|
|
|
|
| 50 |
tts_texts = []
|
| 51 |
}
|
| 52 |
function replaceSpecialChars(text) {
|
| 53 |
+
const pattern = /[^a-zA-Z0-9,.!?-_']/g;
|
| 54 |
return text.replace(pattern, ' ');
|
| 55 |
}
|
| 56 |
|