Spaces:
Runtime error
Runtime error
Update gradio
Browse files- app.py +8 -12
- requirements.txt +0 -1
app.py
CHANGED
@@ -38,19 +38,15 @@ examples = [["Example text 1", "HanmunRoBERTa", True],
|
|
38 |
["Example text 2", "HanmunRoBERTa", True]]
|
39 |
|
40 |
# Set up the Gradio interface
|
41 |
-
gr.Interface(
|
42 |
-
inference,
|
43 |
-
[gr.
|
44 |
-
|
45 |
-
type="value",
|
46 |
-
default="HanmunRoBERTa",
|
47 |
label="Model"),
|
48 |
-
|
49 |
-
|
50 |
examples=examples,
|
51 |
title=title,
|
52 |
-
description=description)
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
|
|
|
|
38 |
["Example text 2", "HanmunRoBERTa", True]]
|
39 |
|
40 |
# Set up the Gradio interface
|
41 |
+
iface = gr.Interface(
|
42 |
+
fn=inference,
|
43 |
+
inputs=[gr.Textbox(label="Input text", lines=10),
|
44 |
+
gr.Dropdown(choices=["HanmunRoBERTa"],
|
|
|
|
|
45 |
label="Model"),
|
46 |
+
gr.Checkbox(label="Remove punctuation", value=True)],
|
47 |
+
outputs=gr.Label(label="Output"),
|
48 |
examples=examples,
|
49 |
title=title,
|
50 |
+
description=description)
|
|
|
|
|
|
|
51 |
|
52 |
+
iface.launch(enable_queue=True)
|
requirements.txt
CHANGED
@@ -1 +0,0 @@
|
|
1 |
-
gradio==3.50
|
|
|
|