Spaces:
Runtime error
Runtime error
Poe Dator
commited on
Commit
•
aaa85c8
1
Parent(s):
f5f9e4a
Update app.py
Browse files
app.py
CHANGED
@@ -86,7 +86,7 @@ def infer_and_display_result(txt):
|
|
86 |
# ======================================
|
87 |
|
88 |
|
89 |
-
st.title('Big-data cloud application for scientific article topic
|
90 |
image = Image.open('dilbert_big_data.jpg')
|
91 |
st.image(image)
|
92 |
st.write('test application for ML-2 class, YSDA-2022' )
|
@@ -97,17 +97,16 @@ text1 = st.text_area("ENTER ARTICLE TITLE HERE")
|
|
97 |
text2 = st.text_area("ENTER ARTICLE ABSTRACT HERE")
|
98 |
text = text1 + ' ' + text2
|
99 |
|
100 |
-
|
101 |
-
|
102 |
-
action2 = st.button('to uppercase')
|
103 |
|
|
|
104 |
if action:
|
105 |
if len(text) < 3:
|
106 |
st.write("this text is too short or empty. try again")
|
107 |
-
else:
|
108 |
-
model = build_model()
|
109 |
infer_and_display_result(text)
|
110 |
-
|
|
|
111 |
if action2:
|
112 |
st.write(text.upper())
|
113 |
|
|
|
86 |
# ======================================
|
87 |
|
88 |
|
89 |
+
st.title('Big-data cloud application for actionable scientific article topic analytics using in-memory computing and stuff.')
|
90 |
image = Image.open('dilbert_big_data.jpg')
|
91 |
st.image(image)
|
92 |
st.write('test application for ML-2 class, YSDA-2022' )
|
|
|
97 |
text2 = st.text_area("ENTER ARTICLE ABSTRACT HERE")
|
98 |
text = text1 + ' ' + text2
|
99 |
|
100 |
+
model = build_model()
|
|
|
|
|
101 |
|
102 |
+
action = st.button('click here to infer topic')
|
103 |
if action:
|
104 |
if len(text) < 3:
|
105 |
st.write("this text is too short or empty. try again")
|
106 |
+
else:
|
|
|
107 |
infer_and_display_result(text)
|
108 |
+
|
109 |
+
action2 = st.button('to uppercase')
|
110 |
if action2:
|
111 |
st.write(text.upper())
|
112 |
|