Spaces:
Sleeping
Sleeping
abdullahmubeen10
commited on
Update Demo.py
Browse files
Demo.py
CHANGED
@@ -94,7 +94,7 @@ custom_input = st.text_input("Try it with your own Sentence!")
|
|
94 |
|
95 |
text_to_analyze = custom_input if custom_input else selected_text
|
96 |
|
97 |
-
st.
|
98 |
st.write(text_to_analyze)
|
99 |
|
100 |
# Initialize Spark and create pipeline
|
@@ -103,7 +103,7 @@ pipeline = create_pipeline()
|
|
103 |
output = fit_data(pipeline, text_to_analyze)
|
104 |
|
105 |
# Display matched sentence
|
106 |
-
st.
|
107 |
|
108 |
results = {
|
109 |
'Token': [t.result for t in output[0]['token']],
|
|
|
94 |
|
95 |
text_to_analyze = custom_input if custom_input else selected_text
|
96 |
|
97 |
+
st.markdown('**Full example text**')
|
98 |
st.write(text_to_analyze)
|
99 |
|
100 |
# Initialize Spark and create pipeline
|
|
|
103 |
output = fit_data(pipeline, text_to_analyze)
|
104 |
|
105 |
# Display matched sentence
|
106 |
+
st.markdown("**Processed output:**")
|
107 |
|
108 |
results = {
|
109 |
'Token': [t.result for t in output[0]['token']],
|