Reem333 commited on
Commit
fa7037b
1 Parent(s): ad01cb8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -66,9 +66,9 @@ with st.sidebar:
66
  st.title("Check Your Paper Now!")
67
 
68
  # Main content
69
- option = st.radio("Select input type:",("Text"))
70
 
71
- if option == "Text":
72
  title_input = st.text_area("Enter Title:")
73
  abstract_input = st.text_area("Enter Abstract:")
74
 
@@ -82,7 +82,7 @@ if option == "Text":
82
  selected_category = custom_category if custom_category else "Other"
83
 
84
  combined_text = f"{title_input} [SEP] {keywords_input} [SEP] {abstract_input} [SEP] {selected_category} [SEP] {affiliations_input}"
85
- if st.button("Predict"):
86
  if not any([title_input, abstract_input, keywords_input, full_text_input, affiliations_input]):
87
  st.warning("Please enter paper text.")
88
  else:
 
66
  st.title("Check Your Paper Now!")
67
 
68
  # Main content
69
+ #option = st.radio("Select input type:",("Text"))
70
 
71
+ #if option == "Text":
72
  title_input = st.text_area("Enter Title:")
73
  abstract_input = st.text_area("Enter Abstract:")
74
 
 
82
  selected_category = custom_category if custom_category else "Other"
83
 
84
  combined_text = f"{title_input} [SEP] {keywords_input} [SEP] {abstract_input} [SEP] {selected_category} [SEP] {affiliations_input}"
85
+ if st.button("Predict"):
86
  if not any([title_input, abstract_input, keywords_input, full_text_input, affiliations_input]):
87
  st.warning("Please enter paper text.")
88
  else: