Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
@@ -24,17 +24,21 @@ def get_annotator(lang: str):
|
|
24 |
return errant.load(lang)
|
25 |
|
26 |
|
27 |
-
st.title("
|
28 |
-
st.markdown(
|
|
|
|
|
29 |
|
30 |
checkpoint = st.selectbox("Choose model", checkpoints)
|
31 |
happy_tt = get_model(checkpoint)
|
32 |
annotator = get_annotator("en")
|
33 |
args = TTSettings(num_beams=5, min_length=1, max_length=1024)
|
34 |
|
|
|
|
|
35 |
input_text = st.text_area(
|
36 |
label="Original text",
|
37 |
-
value=
|
38 |
placeholder="Enter your text here",
|
39 |
)
|
40 |
button = st.button("βοΈ Check")
|
|
|
24 |
return errant.load(lang)
|
25 |
|
26 |
|
27 |
+
st.title("π€ Writing Assistant")
|
28 |
+
st.markdown(
|
29 |
+
"""This writing assistant will proofread any text for you! See my [GitHub repo](https://github.com/aseifert/hf-writing-assistant) for implementation details."""
|
30 |
+
)
|
31 |
|
32 |
checkpoint = st.selectbox("Choose model", checkpoints)
|
33 |
happy_tt = get_model(checkpoint)
|
34 |
annotator = get_annotator("en")
|
35 |
args = TTSettings(num_beams=5, min_length=1, max_length=1024)
|
36 |
|
37 |
+
default_text = "A dog is bigger then mouse."
|
38 |
+
default_text = "A dog is bigger then mouse."
|
39 |
input_text = st.text_area(
|
40 |
label="Original text",
|
41 |
+
value=default_text,
|
42 |
placeholder="Enter your text here",
|
43 |
)
|
44 |
button = st.button("βοΈ Check")
|