Spaces:
Runtime error
Runtime error
app.py
CHANGED
@@ -6,10 +6,10 @@ from transformers import pipeline
|
|
6 |
classifier = pipeline("zero-shot-classification",
|
7 |
model="valhalla/distilbart-mnli-12-1")
|
8 |
|
9 |
-
with st.form('inputs')
|
10 |
-
input_text =
|
11 |
-
input_label =
|
12 |
-
submit_button =
|
13 |
|
14 |
if submit_button:
|
15 |
|
|
|
6 |
classifier = pipeline("zero-shot-classification",
|
7 |
model="valhalla/distilbart-mnli-12-1")
|
8 |
|
9 |
+
with st.form('inputs'):
|
10 |
+
input_text = st.text_area("Enter your sample")
|
11 |
+
input_label = st.text_input("Enter labels", placeholder="support, help, important")
|
12 |
+
submit_button = st.form_submit_button(label='Submit')
|
13 |
|
14 |
if submit_button:
|
15 |
|