Spaces:
Runtime error
Runtime error
swcrazyfan
commited on
Commit
·
6f4e087
1
Parent(s):
891fc93
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ top_p_sampling_settings = TTSettings(num_beams=25, min_length=0, max_length=512,
|
|
3 |
from happytransformer import HappyTextToText, TTSettings
|
4 |
import gradio as gr
|
5 |
happy_tt = HappyTextToText("T5", "swcrazyfan/Kingify-2Way-T5-Large-v1_1")
|
6 |
-
ttsettings = TTSettings(num_beams=
|
7 |
|
8 |
def kingify(text, choice):
|
9 |
if choice == "Kingify":
|
|
|
3 |
from happytransformer import HappyTextToText, TTSettings
|
4 |
import gradio as gr
|
5 |
happy_tt = HappyTextToText("T5", "swcrazyfan/Kingify-2Way-T5-Large-v1_1")
|
6 |
+
ttsettings = TTSettings(num_beams=5, min_length=0, max_length=512, early_stopping=True)
|
7 |
|
8 |
def kingify(text, choice):
|
9 |
if choice == "Kingify":
|