Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ text = st.text_area("Enter the text to classify", "")
|
|
16 |
# Perform text classification when the user clicks the "Classify" button
|
17 |
if st.button("Classify"):
|
18 |
# Perform text classification on the input text
|
19 |
-
translated_text = pipe_tran(
|
20 |
results = pipe_sent(translated_text)[0]
|
21 |
|
22 |
# Display the classification result
|
|
|
16 |
# Perform text classification when the user clicks the "Classify" button
|
17 |
if st.button("Classify"):
|
18 |
# Perform text classification on the input text
|
19 |
+
translated_text = pipe_tran(text)[0]['translation_text']
|
20 |
results = pipe_sent(translated_text)[0]
|
21 |
|
22 |
# Display the classification result
|