Spaces:
Runtime error
Runtime error
felix
commited on
Commit
·
f48a6c5
1
Parent(s):
38c4d39
make chat mode
Browse files
app.py
CHANGED
|
@@ -48,7 +48,8 @@ def text2text(input_text):
|
|
| 48 |
print("Number of output tokens: " + str(outputs.shape[1]))
|
| 49 |
print("length of output: " + str(len(model_output_text)))
|
| 50 |
print("Output: " + model_output_text)
|
| 51 |
-
|
|
|
|
| 52 |
return output_text
|
| 53 |
|
| 54 |
|
|
|
|
| 48 |
print("Number of output tokens: " + str(outputs.shape[1]))
|
| 49 |
print("length of output: " + str(len(model_output_text)))
|
| 50 |
print("Output: " + model_output_text)
|
| 51 |
+
# Space is added because model seem to not add it automatically.
|
| 52 |
+
output_text = input_text + " " + model_output_text
|
| 53 |
return output_text
|
| 54 |
|
| 55 |
|