wb-droid commited on
Commit
b8649f7
β€’
1 Parent(s): e9fe27d

Change to continuous output

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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",