Poe Dator commited on
Commit
a26874e
·
1 Parent(s): 4643ef6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -84,7 +84,7 @@ def infer_and_display_result(txt):
84
  st.markdown(f"cycle time = {time() - start_time:.2f} s.")
85
 
86
  # ======================================
87
- model = build_model()
88
 
89
  st.title('Big-data cloud application for scientific article topic inference using in-memory computing and stuff.')
90
  image = Image.open('dilbert_big_data.jpg')
@@ -95,11 +95,17 @@ st.write('test application for ML-2 class, YSDA-2022' )
95
 
96
  text = st.text_area("ENTER ARTICLE TITLE OR ABSTRACT HERE")
97
  action = st.button('click here to infer topic')
 
 
 
98
  if action:
 
99
  infer_and_display_result(text)
100
 
101
- action2 = st.button('click here to infer topic')
102
  if action2:
103
  st.write(text.upper())
104
 
 
 
 
105
 
 
84
  st.markdown(f"cycle time = {time() - start_time:.2f} s.")
85
 
86
  # ======================================
87
+
88
 
89
  st.title('Big-data cloud application for scientific article topic inference using in-memory computing and stuff.')
90
  image = Image.open('dilbert_big_data.jpg')
 
95
 
96
  text = st.text_area("ENTER ARTICLE TITLE OR ABSTRACT HERE")
97
  action = st.button('click here to infer topic')
98
+
99
+ action2 = st.button('to uppercase')
100
+
101
  if action:
102
+ model = build_model()
103
  infer_and_display_result(text)
104
 
 
105
  if action2:
106
  st.write(text.upper())
107
 
108
+ action3 = st.button('to lowercase')
109
+ if action3:
110
+ st.write(text.lower())
111