aseifert commited on
Commit
08bc537
β€’
1 Parent(s): e7e2393

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -24,17 +24,21 @@ def get_annotator(lang: str):
24
  return errant.load(lang)
25
 
26
 
27
- st.title("Check & Improve English Grammar")
28
- st.markdown("This writing assistant detects πŸ” and corrects ✍️ grammatical mistakes for you!")
 
 
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="A dog is bigger then mouse.",
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")