yenniejun commited on
Commit
a686b95
Β·
1 Parent(s): e827e9e

Old gradio version

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -19,7 +19,7 @@ title = "HanmunRoBERTa Century Classifier"
19
  description = "Century classifier for classical Chinese and Korean texts"
20
 
21
  # Load the HanmunRoBERTa model
22
- hanmun_roberta = gr.Interface.load("huggingface/bdsl/HanmunRoBERTa")
23
 
24
  def strip_text(inputtext):
25
  characters_to_remove = "β—‹β–‘()〔〕:\"。·, ?ㆍ" + punctuation
@@ -45,7 +45,7 @@ gr.Interface(
45
  type="value",
46
  default="HanmunRoBERTa",
47
  label="Model"),
48
- gr.inputs.Checkbox(label="Remove punctuation", value=True)],
49
  [gr.outputs.Label(label="Output")],
50
  examples=examples,
51
  title=title,
 
19
  description = "Century classifier for classical Chinese and Korean texts"
20
 
21
  # Load the HanmunRoBERTa model
22
+ hanmun_roberta = gr.load("huggingface/bdsl/HanmunRoBERTa")
23
 
24
  def strip_text(inputtext):
25
  characters_to_remove = "β—‹β–‘()〔〕:\"。·, ?ㆍ" + punctuation
 
45
  type="value",
46
  default="HanmunRoBERTa",
47
  label="Model"),
48
+ gr.inputs.Checkbox(label="Remove punctuation")],
49
  [gr.outputs.Label(label="Output")],
50
  examples=examples,
51
  title=title,