Change to continuous output
Browse files
app.py
CHANGED
@@ -128,10 +128,11 @@ def generate(s, num = 60):
|
|
128 |
if next_c in s and next_c != 'γ' and next_c != 'οΌ':
|
129 |
continue
|
130 |
s = s + next_c
|
131 |
-
|
|
|
132 |
if (len(s) > num and s[-1] == "γ"):
|
133 |
break
|
134 |
-
return s
|
135 |
|
136 |
inputs = [gr.Textbox(label="Input",
|
137 |
info="Enter some Chinese text to start generate",
|
|
|
128 |
if next_c in s and next_c != 'γ' and next_c != 'οΌ':
|
129 |
continue
|
130 |
s = s + next_c
|
131 |
+
yield s
|
132 |
+
|
133 |
if (len(s) > num and s[-1] == "γ"):
|
134 |
break
|
135 |
+
#return s
|
136 |
|
137 |
inputs = [gr.Textbox(label="Input",
|
138 |
info="Enter some Chinese text to start generate",
|