Spaces:
Running
Running
Upload 2 files
Browse files
app.py
CHANGED
@@ -185,7 +185,7 @@ def main():
|
|
185 |
if 'pdf_source_type' not in st.session_state:
|
186 |
st.session_state.pdf_source_type = "URL"
|
187 |
if 'pdf_url' not in st.session_state:
|
188 |
-
st.session_state.pdf_url = "
|
189 |
if 'uploaded_file' not in st.session_state:
|
190 |
st.session_state.uploaded_file = None
|
191 |
if 'questions' not in st.session_state:
|
@@ -213,6 +213,8 @@ def main():
|
|
213 |
type=['pdf'],
|
214 |
key="pdf_file_upload"
|
215 |
)
|
|
|
|
|
216 |
|
217 |
# Question Length Selection
|
218 |
question_length = st.select_slider(
|
@@ -229,15 +231,15 @@ def main():
|
|
229 |
col1, col2, col3 = st.columns(3)
|
230 |
|
231 |
with col1:
|
232 |
-
knowledge = st.slider("Knowledge: Remembering
|
233 |
-
application = st.slider("
|
234 |
|
235 |
with col2:
|
236 |
-
comprehension = st.slider("
|
237 |
-
analysis = st.slider("
|
238 |
|
239 |
with col3:
|
240 |
-
synthesis = st.slider("
|
241 |
evaluation = st.slider("Evaluation: Making and defending judgments based on internal evidence or external criteria", 0, 100, 10, key='evaluation_slider')
|
242 |
|
243 |
# Collect the Bloom's Taxonomy weights
|
@@ -286,7 +288,8 @@ def main():
|
|
286 |
bloom_taxonomy_weights=normalized_bloom_weights,
|
287 |
num_questions=num_questions,
|
288 |
question_length=question_length,
|
289 |
-
include_numericals=st.session_state.include_numericals
|
|
|
290 |
)
|
291 |
|
292 |
if st.session_state.questions:
|
|
|
185 |
if 'pdf_source_type' not in st.session_state:
|
186 |
st.session_state.pdf_source_type = "URL"
|
187 |
if 'pdf_url' not in st.session_state:
|
188 |
+
st.session_state.pdf_url = ""
|
189 |
if 'uploaded_file' not in st.session_state:
|
190 |
st.session_state.uploaded_file = None
|
191 |
if 'questions' not in st.session_state:
|
|
|
213 |
type=['pdf'],
|
214 |
key="pdf_file_upload"
|
215 |
)
|
216 |
+
|
217 |
+
st.session_state.user_input=st.text_area("Enter your query here", key="input", height=100)
|
218 |
|
219 |
# Question Length Selection
|
220 |
question_length = st.select_slider(
|
|
|
231 |
col1, col2, col3 = st.columns(3)
|
232 |
|
233 |
with col1:
|
234 |
+
knowledge = st.slider("Knowledge: Remembering", 0, 100, 20, key='knowledge_slider')
|
235 |
+
application = st.slider("Applying: Using abstractions in concrete situations", 0, 100, 20, key='application_slider')
|
236 |
|
237 |
with col2:
|
238 |
+
comprehension = st.slider("Understanding: Explaining the meaning of information", 0, 100, 20, key='comprehension_slider')
|
239 |
+
analysis = st.slider("Analyzing: Breaking down a whole into component parts", 0, 100, 20, key='analysis_slider')
|
240 |
|
241 |
with col3:
|
242 |
+
synthesis = st.slider("Creating: Putting parts together to form a new and integrated whole", 0, 100, 10, key='synthesis_slider')
|
243 |
evaluation = st.slider("Evaluation: Making and defending judgments based on internal evidence or external criteria", 0, 100, 10, key='evaluation_slider')
|
244 |
|
245 |
# Collect the Bloom's Taxonomy weights
|
|
|
288 |
bloom_taxonomy_weights=normalized_bloom_weights,
|
289 |
num_questions=num_questions,
|
290 |
question_length=question_length,
|
291 |
+
include_numericals=st.session_state.include_numericals,
|
292 |
+
user_input=st.session_state.user_input
|
293 |
)
|
294 |
|
295 |
if st.session_state.questions:
|