Spaces:
Build error
Build error
prithivida
commited on
Commit
β’
b9cab86
1
Parent(s):
075c27b
Updated header and a comment line
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ def get_correction(input_text, model):
|
|
46 |
|
47 |
|
48 |
def diff_strings(a, b):
|
49 |
-
#
|
50 |
result = []
|
51 |
diff = difflib.Differ().compare(a.split(), b.split())
|
52 |
replacement = ""
|
@@ -80,7 +80,8 @@ if __name__ == "__main__":
|
|
80 |
|
81 |
st.title('Neuspell - A Python library')
|
82 |
st.subheader('For fast & accurate spell correction')
|
83 |
-
st.markdown("Added to HuggingFace hub and spaces with π by Prithivi Da
|
|
|
84 |
st.markdown("<p style='color:blue; display:inline'> Integrate with your app with just few lines of code </p>", unsafe_allow_html=True)
|
85 |
st.markdown("""
|
86 |
```python
|
@@ -116,7 +117,7 @@ if __name__ == "__main__":
|
|
116 |
if not st.session_state['models_loaded']:
|
117 |
load_models()
|
118 |
|
119 |
-
st.markdown(f'##### Models:')
|
120 |
selected_model = st.selectbox(
|
121 |
label="Choose a model: (Test and integrate the best that suits your needs)",
|
122 |
options=models
|
|
|
46 |
|
47 |
|
48 |
def diff_strings(a, b):
|
49 |
+
# taken from team-writing-assistant/grammar-correction
|
50 |
result = []
|
51 |
diff = difflib.Differ().compare(a.split(), b.split())
|
52 |
replacement = ""
|
|
|
80 |
|
81 |
st.title('Neuspell - A Python library')
|
82 |
st.subheader('For fast & accurate spell correction')
|
83 |
+
st.markdown("Added to HuggingFace hub and spaces with π by Prithivi Da.[Fork with HF hub support](https://github.com/PrithivirajDamodaran/neuspell)
|
84 |
+
| [Original repo](https://github.com/neuspell/neuspell)", unsafe_allow_html=True)
|
85 |
st.markdown("<p style='color:blue; display:inline'> Integrate with your app with just few lines of code </p>", unsafe_allow_html=True)
|
86 |
st.markdown("""
|
87 |
```python
|
|
|
117 |
if not st.session_state['models_loaded']:
|
118 |
load_models()
|
119 |
|
120 |
+
st.markdown(f'##### Supported Models:')
|
121 |
selected_model = st.selectbox(
|
122 |
label="Choose a model: (Test and integrate the best that suits your needs)",
|
123 |
options=models
|