Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -159,7 +159,7 @@ def generate_text(input_text, num_predictions=3):
|
|
| 159 |
break
|
| 160 |
input_word = prediction # Update input word for next prediction
|
| 161 |
aa = " ".join(predictions)
|
| 162 |
-
answer = aa
|
| 163 |
return answer
|
| 164 |
|
| 165 |
additional_inputs=[
|
|
|
|
| 159 |
break
|
| 160 |
input_word = prediction # Update input word for next prediction
|
| 161 |
aa = " ".join(predictions)
|
| 162 |
+
answer = corrected_input + " " + aa
|
| 163 |
return answer
|
| 164 |
|
| 165 |
additional_inputs=[
|