Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,8 +28,13 @@ def generate(text):
|
|
| 28 |
top_k=85,
|
| 29 |
repetition_penalty=1.1,
|
| 30 |
temperature=0.01)
|
| 31 |
-
|
| 32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
return tokenizer.decode(outputs[0])
|
| 34 |
|
| 35 |
gradio_app = gr.Interface(
|
|
|
|
| 28 |
top_k=85,
|
| 29 |
repetition_penalty=1.1,
|
| 30 |
temperature=0.01)
|
| 31 |
+
|
| 32 |
+
theResult=tokenizer.decode(outputs[0])
|
| 33 |
+
print(theResult)
|
| 34 |
+
splitOutput=theResult.splitlines()
|
| 35 |
+
for i in range(0,len(splitOutput))
|
| 36 |
+
print i, splitOutput[i]
|
| 37 |
+
|
| 38 |
return tokenizer.decode(outputs[0])
|
| 39 |
|
| 40 |
gradio_app = gr.Interface(
|