Skip to content

Commit 1d4b36e

Browse files
Update Verso.py
1 parent 28aa592 commit 1d4b36e

1 file changed

Lines changed: 8 additions & 13 deletions

File tree

Verso.py

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

197197
with t1:
198198
cols = st.columns(2)
199-
# FIXED: Uses 'words' to prevent KeyError
200199
for i, phrase in enumerate(words[:20]):
201200
cols[i % 2].markdown(f'<div class="notebook-card"><b>{i+1}.</b> {phrase.title()}</div>', unsafe_allow_html=True)
202201

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

238237
with t3:
239-
# --- FIXED FLASHCARDS: REMOVED STARS & FRAGMENTATION ---
240238
st.markdown("### NotebookLM Style Flashcards (25 Cards)")
241239
total_fc = 25
242240
if st.session_state.fc_step < total_fc:
@@ -247,18 +245,19 @@ def trigger_master_reset():
247245
fc_type = curr_idx % 4
248246
if fc_type == 0:
249247
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>?"
250-
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."
248+
a_text = f"<b>Source Analysis:</b> Your material utilizes '{curr_word}' as a core technical anchor."
251249
elif fc_type == 1:
252250
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?"
253-
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."
251+
a_text = f"<b>Practical Application:</b> The source implies that successful implementation of '{curr_word}' leads to a more robust result."
254252
elif fc_type == 2:
255253
other_word = words[(curr_idx + 1) % len(words)].title()
256254
q_text = f"Analyze the connection between <b>'{curr_word}'</b> and <b>'{other_word}'</b>. How do they interact within your study content?"
257-
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."
255+
a_text = f"<b>Inter-Term Relationship:</b> Within your notes, '{curr_word}' acts as a prerequisite for '{other_word}'."
258256
else:
259257
q_text = f"What specific evidence or context does the inputed source provide to highlight the importance of <b>'{curr_word}'</b>?"
260-
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."
258+
a_text = f"<b>Contextual Importance:</b> The input identifies '{curr_word}' as a high-value variable."
261259

260+
# SINGLE UNIT RENDERING - PREVENTS FRAGMENTATION
262261
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)
263262

264263
if not st.session_state.reveal_fc:
@@ -283,13 +282,9 @@ def trigger_master_reset():
283282
<div class="teacher-board">
284283
<h2>AI DEEP TEACHER: CONTENT MASTERCLASS</h2>
285284
<h3>I. Executive Core Concept</h3>
286-
<p>The central pillar is <b>{words[0].title()}</b>. This dictates how <b>{words[1].title()}</b> is applied.</p>
285+
<p>The central pillar is <b>{words[0].title()}</b>.</p>
287286
<h3>II. Technical Mechanics & Workflow</h3>
288-
<p>We observe interaction between <b>{words[2].title()}</b> and <b>{words[3].title()}</b>. Without <b>{words[4].title()}</b>, the objective would fail.</p>
289-
<h3>III. Deep Contextual Impact</h3>
290-
<p>Analyzing <b>{words[5].title()}</b> reveals a deeper layer. It acts as a bridge to <b>{words[6].title()}</b>.</p>
291-
<h3>IV. Critical Synthesis</h3>
292-
<p><b>{words[8].title()}</b> is deeply connected to <b>{words[9].title()}</b> and <b>{words[10].title()}</b>.</p>
287+
<p>We observe interaction between <b>{words[2].title()}</b> and <b>{words[3].title()}</b>.</p>
293288
</div>
294289
""", unsafe_allow_html=True)
295290

@@ -323,7 +318,7 @@ def trigger_master_reset():
323318
st.color_picker("Card BG", bg_card, key=f"s12_{v_id}")
324319
with c3:
325320
st.write("### 🔐 Security")
326-
st.info(f"Build: 14.5.9 (vID: {v_id})")
321+
st.info(f"Build: 14.6.1 (vID: {v_id})")
327322

328323
# --- HOME ---
329324
elif choice == "🏠 Home":

0 commit comments

Comments
 (0)