Spaces:
Sleeping
Sleeping
Commit
•
e5f983c
1
Parent(s):
ab1e7d8
Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ def generate(text):
|
|
32 |
theResult=tokenizer.decode(outputs[0])
|
33 |
print(theResult)
|
34 |
splitOutput=theResult.splitlines()
|
35 |
-
|
36 |
for i in range(0,len(splitOutput)):
|
37 |
print("i={},out={}".format(i, splitOutput[i]))
|
38 |
if(i>0 and splitOutput[i].strip()):
|
|
|
32 |
theResult=tokenizer.decode(outputs[0])
|
33 |
print(theResult)
|
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()):
|