Poe Dator commited on
Commit
7add069
1 Parent(s): 77d4fc8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -11
app.py CHANGED
@@ -90,7 +90,6 @@ st.title('Big-data cloud application for actionable scientific article topic ana
90
  st.subheader('test application for ML-2 class, YSDA-2022' )
91
  image = Image.open('dilbert_big_data.jpg')
92
  st.image(image)
93
- st.write('test application for ML-2 class, YSDA-2022' )
94
 
95
  comment = """This application estimates probability that certain article belongs to one of the following classes based on Arxiv Category Taxonomy:
96
  - 'cs.NE': 'Neural and Evolutionary Computing',
@@ -99,10 +98,10 @@ comment = """This application estimates probability that certain article belongs
99
  - 'stat.ML': 'Machine Learning (stat)',
100
  - 'cs.CV': 'Computer Vision',
101
  - 'cs.LG': 'Machine Learning' """.replace("'", '')
102
- st.markdown(comment)
103
 
104
- text1 = st.text_area("ENTER ARTICLE TITLE HERE")
105
- text2 = st.text_area("ENTER ARTICLE ABSTRACT HERE")
106
  text = text1 + ' ' + text2
107
 
108
  model = build_model()
@@ -114,10 +113,6 @@ if action:
114
  else:
115
  infer_and_display_result(text)
116
 
117
- action2 = st.button('to uppercase')
118
- if action2:
119
- st.write(text.upper())
120
-
121
- action3 = st.button('to lowercase')
122
- if action3:
123
- st.write(text.lower())
 
90
  st.subheader('test application for ML-2 class, YSDA-2022' )
91
  image = Image.open('dilbert_big_data.jpg')
92
  st.image(image)
 
93
 
94
  comment = """This application estimates probability that certain article belongs to one of the following classes based on Arxiv Category Taxonomy:
95
  - 'cs.NE': 'Neural and Evolutionary Computing',
 
98
  - 'stat.ML': 'Machine Learning (stat)',
99
  - 'cs.CV': 'Computer Vision',
100
  - 'cs.LG': 'Machine Learning' """.replace("'", '')
101
+ st.code(comment)
102
 
103
+ text1 = st.text_area("ENTER ARTICLE TITLE OR ABSTRACT HERE:")
104
+ text2 = '' # st.text_area("ENTER ARTICLE ABSTRACT HERE")
105
  text = text1 + ' ' + text2
106
 
107
  model = build_model()
 
113
  else:
114
  infer_and_display_result(text)
115
 
116
+ # action2 = st.button('to uppercase')
117
+ # if action2:
118
+ # st.write(text.upper())