Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
|
@@ -15,6 +15,7 @@ checkpoints = [
|
|
| 15 |
]
|
| 16 |
|
| 17 |
|
|
|
|
| 18 |
def download_spacy_model(model="en"):
|
| 19 |
spacy.cli.download(model) # type: ignore
|
| 20 |
return True
|
|
@@ -61,7 +62,6 @@ def main():
|
|
| 61 |
input_text = st.text_area(
|
| 62 |
label="Original text",
|
| 63 |
value=default_text,
|
| 64 |
-
placeholder="Enter your text here",
|
| 65 |
)
|
| 66 |
|
| 67 |
if st.button("✍️ Check"):
|
|
|
|
| 15 |
]
|
| 16 |
|
| 17 |
|
| 18 |
+
@st.cache
|
| 19 |
def download_spacy_model(model="en"):
|
| 20 |
spacy.cli.download(model) # type: ignore
|
| 21 |
return True
|
|
|
|
| 62 |
input_text = st.text_area(
|
| 63 |
label="Original text",
|
| 64 |
value=default_text,
|
|
|
|
| 65 |
)
|
| 66 |
|
| 67 |
if st.button("✍️ Check"):
|