pere commited on
Commit
0fada44
·
1 Parent(s): f41bed5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -8
app.py CHANGED
@@ -17,10 +17,6 @@ def deuncase(model, tokenizer, text):
17
  )
18
  return tokenizer.batch_decode(generated_tokens, skip_special_tokens=True)
19
 
20
- def spaces():
21
- st.ta.value= "About"
22
- return None
23
-
24
  st.title("DeUnCaser")
25
 
26
  st.sidebar.write("This web app adds spaces, punctation and capitalisation back into the text.")
@@ -45,15 +41,12 @@ st.write("test1")
45
 
46
  if uncase:
47
  mytext = mytext.lower()
48
- st.write("test2")
49
-
50
  elif unpunct:
51
  mytext = mytext.replace('.', ' ')
52
  else:
53
  st.write("test3")
54
 
55
-
56
-
57
  text = st.text_area(f"",max_chars=1000, value=mytext)
58
 
59
  run = st.button('Run DeUnCaser')
 
17
  )
18
  return tokenizer.batch_decode(generated_tokens, skip_special_tokens=True)
19
 
 
 
 
 
20
  st.title("DeUnCaser")
21
 
22
  st.sidebar.write("This web app adds spaces, punctation and capitalisation back into the text.")
 
41
 
42
  if uncase:
43
  mytext = mytext.lower()
44
+ st.write("uncase is pressed, and mytext ="+ mytext)
 
45
  elif unpunct:
46
  mytext = mytext.replace('.', ' ')
47
  else:
48
  st.write("test3")
49
 
 
 
50
  text = st.text_area(f"",max_chars=1000, value=mytext)
51
 
52
  run = st.button('Run DeUnCaser')