ilyshi commited on
Commit
9ea329a
1 Parent(s): 9ee8653
Files changed (1) hide show
  1. app.py +5 -11
app.py CHANGED
@@ -54,18 +54,12 @@ st.image(image)
54
  st.markdown("# ")
55
 
56
  st.markdown("### Article Title")
57
- text = st.text_area("Введите название научной статьи для классификации", height=20)
58
 
59
  st.markdown("### Article Abstract")
60
 
61
- text = st.text_area("Введите описание статьи", height=200)
62
- st.write("beginning")
63
- if text is None:
64
- st.write("var1")
65
- elif text == "":
66
- st.write("var2")
67
- else:
68
- st.write("other variant")
69
- st.write(text)
70
- make_prediction(text)
71
 
 
54
  st.markdown("# ")
55
 
56
  st.markdown("### Article Title")
57
+ text1 = st.text_area("Введите название научной статьи для классификации", height=20)
58
 
59
  st.markdown("### Article Abstract")
60
 
61
+ text2 = st.text_area("Введите описание статьи", height=200)
62
+ common_text = text1 + text2:
63
+ if common_text != "":
64
+ make_prediction(common_text)
 
 
 
 
 
 
65