Update app.py
Browse files
app.py
CHANGED
@@ -8,13 +8,10 @@ def main():
|
|
8 |
with st.form("text_field"):
|
9 |
text = st.text_area('enter some text:')
|
10 |
# clicked==True only when the button is clicked
|
11 |
-
clicked = st.form_submit_button("
|
12 |
if clicked:
|
13 |
results = classifier([text])
|
14 |
st.json(results)
|
15 |
|
16 |
if __name__ == "__main__":
|
17 |
-
main()
|
18 |
-
|
19 |
-
|
20 |
-
"""'audio-classification', 'automatic-speech-recognition', 'conversational', 'document-question-answering', 'feature-extraction', 'fill-mask', 'image-classification', 'image-segmentation', 'image-to-text', 'ner', 'object-detection', 'question-answering', 'sentiment-analysis', 'summarization', 'table-question-answering', 'text-classification', 'text-generation', 'text2text-generation', 'token-classification', 'translation', 'visual-question-answering', 'vqa', 'zero-shot-classification', 'zero-shot-image-classification', 'translation_XX_to_YY'"""
|
|
|
8 |
with st.form("text_field"):
|
9 |
text = st.text_area('enter some text:')
|
10 |
# clicked==True only when the button is clicked
|
11 |
+
clicked = st.form_submit_button("Compute")
|
12 |
if clicked:
|
13 |
results = classifier([text])
|
14 |
st.json(results)
|
15 |
|
16 |
if __name__ == "__main__":
|
17 |
+
main()
|
|
|
|
|
|