Spaces:
Runtime error
Runtime error
Old gradio version
Browse files
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.
|
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"
|
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,
|