Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -22,8 +22,8 @@ def classify_text(text):
|
|
22 |
# Create the Gradio interface
|
23 |
demo = gr.Interface(
|
24 |
fn=classify_text,
|
25 |
-
inputs=gr.Textbox(lines=2, placeholder="Enter
|
26 |
-
outputs=[gr.Textbox(label="Label"), gr.Number(label="Score")],
|
27 |
title="XLM-R ISCO classification with ZeroGPU",
|
28 |
description="Classify occupations using a pre-trained XLM-R-ISCO model on Hugging Face Spaces with ZeroGPU"
|
29 |
)
|
|
|
22 |
# Create the Gradio interface
|
23 |
demo = gr.Interface(
|
24 |
fn=classify_text,
|
25 |
+
inputs=gr.Textbox(lines=2, label="Job description text", placeholder="Enter a job description..."),
|
26 |
+
outputs=[gr.Textbox(label="ISCO-08 Label"), gr.Number(label="Score")],
|
27 |
title="XLM-R ISCO classification with ZeroGPU",
|
28 |
description="Classify occupations using a pre-trained XLM-R-ISCO model on Hugging Face Spaces with ZeroGPU"
|
29 |
)
|