AndySAnker commited on
Commit
d8ff1f1
1 Parent(s): e09f9f7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -105,18 +105,18 @@ st.write('Upload a PDF to use POMFinder to predict the structure.')
105
  pdf_file = st.file_uploader("Upload PDF file in .gr format", type=["gr"])
106
 
107
  # Define the form to get the other parameters
108
- #Qmin = st.number_input("Qmin value of the experimental PDF", min_value=0.0, max_value=2.0, value=0.7)
109
- #Qmax = st.number_input("Qmax value of the experimental PDF", min_value=15.0, max_value=40.0, value=30.0)
110
- #Qdamp = st.number_input("Qdamp value of the experimental PDF", min_value=0.00, max_value=0.08, value=0.04)
111
  nyquist = st.checkbox("Is the data nyquist sampled", value=False)
112
 
113
  parser = argparse.ArgumentParser(prog='POMFinder', formatter_class=argparse.ArgumentDefaultsHelpFormatter)
114
  args = parser.parse_args()
115
  args.data = "uploaded_file.gr"
116
  args.nyquist = nyquist
117
- #args.Qmin = Qmin
118
- #args.Qmax = Qmax
119
- #args.Qdamp = Qdamp
120
  args.file_name = "POMFinder_results.txt"
121
 
122
  if pdf_file is None:
 
105
  pdf_file = st.file_uploader("Upload PDF file in .gr format", type=["gr"])
106
 
107
  # Define the form to get the other parameters
108
+ Qmin = 0.7 #st.number_input("Qmin value of the experimental PDF", min_value=0.0, max_value=2.0, value=0.7)
109
+ Qmax = 30 #st.number_input("Qmax value of the experimental PDF", min_value=15.0, max_value=40.0, value=30.0)
110
+ Qdamp = 0.04 #st.number_input("Qdamp value of the experimental PDF", min_value=0.00, max_value=0.08, value=0.04)
111
  nyquist = st.checkbox("Is the data nyquist sampled", value=False)
112
 
113
  parser = argparse.ArgumentParser(prog='POMFinder', formatter_class=argparse.ArgumentDefaultsHelpFormatter)
114
  args = parser.parse_args()
115
  args.data = "uploaded_file.gr"
116
  args.nyquist = nyquist
117
+ args.Qmin = Qmin
118
+ args.Qmax = Qmax
119
+ args.Qdamp = Qdamp
120
  args.file_name = "POMFinder_results.txt"
121
 
122
  if pdf_file is None: