Spaces:
Sleeping
Sleeping
simonzhang5429
commited on
Commit
•
7853e0b
1
Parent(s):
e5f983c
Update app.py
Browse files
app.py
CHANGED
@@ -34,9 +34,9 @@ def generate(text):
|
|
34 |
splitOutput=theResult.splitlines()
|
35 |
theReturn=""
|
36 |
for i in range(0,len(splitOutput)):
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
print("result={}".format(theReturn))
|
41 |
return tokenizer.decode(outputs[0])
|
42 |
|
|
|
34 |
splitOutput=theResult.splitlines()
|
35 |
theReturn=""
|
36 |
for i in range(0,len(splitOutput)):
|
37 |
+
print("i={},out={}".format(i, splitOutput[i]))
|
38 |
+
if(i>0 and splitOutput[i].strip()):
|
39 |
+
theReturn+=splitOutput[i].strip()
|
40 |
print("result={}".format(theReturn))
|
41 |
return tokenizer.decode(outputs[0])
|
42 |
|