Fix: en_core_web_sm
Browse files
app.py
CHANGED
@@ -6,8 +6,8 @@ import pandas as pd
|
|
6 |
import torch
|
7 |
import math
|
8 |
import re
|
9 |
-
|
10 |
-
|
11 |
|
12 |
def set_seed(seed):
|
13 |
torch.manual_seed(seed)
|
@@ -140,10 +140,10 @@ class GramformerDemo:
|
|
140 |
st.markdown(f'#### Output:')
|
141 |
st.write('')
|
142 |
st.success(corrected_sentence)
|
143 |
-
exp1 = st.
|
144 |
with exp1:
|
145 |
self.show_highlights(gf, input_text, corrected_sentence)
|
146 |
-
exp2 = st.
|
147 |
with exp2:
|
148 |
self.show_edits(gf, input_text, corrected_sentence)
|
149 |
|
|
|
6 |
import torch
|
7 |
import math
|
8 |
import re
|
9 |
+
|
10 |
+
print("OK")
|
11 |
|
12 |
def set_seed(seed):
|
13 |
torch.manual_seed(seed)
|
|
|
140 |
st.markdown(f'#### Output:')
|
141 |
st.write('')
|
142 |
st.success(corrected_sentence)
|
143 |
+
exp1 = st.expander(label='Show highlights', expanded=True)
|
144 |
with exp1:
|
145 |
self.show_highlights(gf, input_text, corrected_sentence)
|
146 |
+
exp2 = st.expander(label='Show edits')
|
147 |
with exp2:
|
148 |
self.show_edits(gf, input_text, corrected_sentence)
|
149 |
|