Skip to content

Commit 28aa592

Browse files
Update Verso.py
1 parent 7d769f3 commit 28aa592

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

Verso.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def trigger_master_reset():
196196

197197
with t1:
198198
cols = st.columns(2)
199-
# Fixed loop to use "words" variable instead of missing "data" key
199+
# FIXED: Uses 'words' to prevent KeyError
200200
for i, phrase in enumerate(words[:20]):
201201
cols[i % 2].markdown(f'<div class="notebook-card"><b>{i+1}.</b> {phrase.title()}</div>', unsafe_allow_html=True)
202202

@@ -236,7 +236,7 @@ def trigger_master_reset():
236236
if st.button("Restart Quiz"): st.session_state.quiz_step = 0; st.session_state.quiz_score = 0; st.rerun()
237237

238238
with t3:
239-
# --- FIXED FLASHCARDS: REMOVED FRAGMENTATION & KEY ERRORS ---
239+
# --- FIXED FLASHCARDS: REMOVED STARS & FRAGMENTATION ---
240240
st.markdown("### NotebookLM Style Flashcards (25 Cards)")
241241
total_fc = 25
242242
if st.session_state.fc_step < total_fc:
@@ -246,20 +246,19 @@ def trigger_master_reset():
246246

247247
fc_type = curr_idx % 4
248248
if fc_type == 0:
249-
q_text = f"In reference to the core academic principles outlined in your study material, how would you best describe the significance or technical definition of **'{curr_word}'**?"
249+
q_text = f"In reference to the core academic principles outlined in your study material, how would you best describe the significance or technical definition of <b>'{curr_word}'</b>?"
250250
a_text = f"<b>Source Analysis:</b> Your material utilizes '{curr_word}' as a core technical anchor. It serves to validate the primary claims by providing the necessary conceptual grounding described in the text."
251251
elif fc_type == 1:
252-
q_text = f"If you had to apply **'{curr_word}'** to a practical scenario following the logic of the source, what would be the intended outcome?"
252+
q_text = f"If you had to apply <b>'{curr_word}'</b> to a practical scenario following the logic of the source, what would be the intended outcome?"
253253
a_text = f"<b>Practical Application:</b> The source implies that successful implementation of '{curr_word}' leads to a more robust result, specifically bridging the gap between theoretical input and real-world execution."
254254
elif fc_type == 2:
255255
other_word = words[(curr_idx + 1) % len(words)].title()
256-
q_text = f"Analyze the connection between **'{curr_word}'** and **'{other_word}'**. How do they interact within your study content?"
256+
q_text = f"Analyze the connection between <b>'{curr_word}'</b> and <b>'{other_word}'</b>. How do they interact within your study content?"
257257
a_text = f"<b>Inter-Term Relationship:</b> Within your notes, '{curr_word}' acts as a prerequisite or supporting pillar for '{other_word}'. They are functionally linked, meaning the effectiveness of one directly impacts the reliability of the other."
258258
else:
259-
q_text = f"What specific evidence or context does the inputed source provide to highlight the importance of **'{curr_word}'**?"
259+
q_text = f"What specific evidence or context does the inputed source provide to highlight the importance of <b>'{curr_word}'</b>?"
260260
a_text = f"<b>Contextual Importance:</b> The input identifies '{curr_word}' as a high-value variable. Its presence is highlighted to ensure the user understands the structural dependency of the entire topic on this specific point."
261261

262-
# Single, clear integrated question box
263262
st.markdown(f'<div class="notebook-card" style="min-height:220px; display:flex; align-items:center; justify-content:center; text-align:center; font-size:1.3rem; line-height:1.6;">{q_text}</div>', unsafe_allow_html=True)
264263

265264
if not st.session_state.reveal_fc:
@@ -324,7 +323,7 @@ def trigger_master_reset():
324323
st.color_picker("Card BG", bg_card, key=f"s12_{v_id}")
325324
with c3:
326325
st.write("### 🔐 Security")
327-
st.info(f"Build: 14.5.8 (vID: {v_id})")
326+
st.info(f"Build: 14.5.9 (vID: {v_id})")
328327

329328
# --- HOME ---
330329
elif choice == "🏠 Home":

0 commit comments

Comments
 (0)