Rathapoom commited on
Commit
41e10fe
·
verified ·
1 Parent(s): 2452be6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -13
app.py CHANGED
@@ -1953,20 +1953,9 @@ with col1:
1953
  </div>
1954
  """, unsafe_allow_html=True)
1955
 
1956
- story_display = st.container()
 
1957
 
1958
- with story_display:
1959
- if not st.session_state.story:
1960
- st.info("เริ่มต้นผจญภัยด้วยการเขียนประโยคแรกกันเลย! | Start your adventure by writing the first sentence!")
1961
- else:
1962
- for idx, entry in enumerate(st.session_state.story):
1963
- if entry['role'] == 'You':
1964
- # เพิ่มไอคอนแสดงสถานะความถูกต้อง
1965
- status_icon = "✅ " if entry.get('is_correct') else "✍️ "
1966
- st.write(f"👤 You: {status_icon}{entry['content']}")
1967
- elif entry['role'] == 'AI':
1968
- st.write("🤖 AI:", entry['content'])
1969
-
1970
  # User Input Box
1971
  st.markdown("""
1972
  <div class="thai-eng">
 
1953
  </div>
1954
  """, unsafe_allow_html=True)
1955
 
1956
+ # เรียกใช้ show_story() แทนโค้ดเดิม
1957
+ show_story()
1958
 
 
 
 
 
 
 
 
 
 
 
 
 
1959
  # User Input Box
1960
  st.markdown("""
1961
  <div class="thai-eng">