Spaces:
Runtime error
Runtime error
Commit
·
738f127
1
Parent(s):
d46bc93
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,13 +23,7 @@ button = st.button('Detect grammar mistakes:')
|
|
| 23 |
|
| 24 |
if button:
|
| 25 |
output_text = model(textbox)[0]
|
| 26 |
-
|
| 27 |
-
for i, line in enumerate(output_text.split("\n")):
|
| 28 |
-
if ":" in line:
|
| 29 |
-
speaker, speech = line.split(':')
|
| 30 |
-
st.markdown(f'__{speaker}__: {speech}')
|
| 31 |
-
else:
|
| 32 |
-
st.markdown(line)
|
| 33 |
|
| 34 |
#inputs = tokenizer("Grammar: "+sent,return_tensors="tf")
|
| 35 |
|
|
|
|
| 23 |
|
| 24 |
if button:
|
| 25 |
output_text = model(textbox)[0]
|
| 26 |
+
st.markdown(output_text)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
#inputs = tokenizer("Grammar: "+sent,return_tensors="tf")
|
| 29 |
|