M17idd commited on
Commit
a9cf61c
·
verified ·
1 Parent(s): baa30d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -82,12 +82,12 @@ st.markdown("""
82
 
83
  col1, col2, col3 = st.columns([1, 0.2, 1])
84
  with col2:
85
- st.image("army.png", width=240)
86
 
87
  st.markdown("""
88
  <div class="header-text">
89
- <h1>چت‌ بات توانا</h1>
90
- <div class="subtitle">رزم یار ارتش</div>
91
  </div>
92
  """, unsafe_allow_html=True)
93
 
@@ -154,7 +154,7 @@ if st.session_state.pending_prompt:
154
  thinking = st.empty()
155
  thinking.markdown("🤖 در حال فکر کردن...")
156
 
157
- response = chain.run(f'پاسخ را فقط به زبان فارسی جواب بده. سوال: {st.session_state.pending_prompt}')
158
  answer = response.split("Helpful Answer:")[-1].strip()
159
  if not answer:
160
  answer = "متأسفم، اطلاعات دقیقی در این مورد ندارم."
 
82
 
83
  col1, col2, col3 = st.columns([1, 0.2, 1])
84
  with col2:
85
+ st.image("log.png", width=240)
86
 
87
  st.markdown("""
88
  <div class="header-text">
89
+ <h1>رزم یار ارتش</h1>
90
+ <div class="subtitle">دستیار هوشمند</div>
91
  </div>
92
  """, unsafe_allow_html=True)
93
 
 
154
  thinking = st.empty()
155
  thinking.markdown("🤖 در حال فکر کردن...")
156
 
157
+ response = chain.run(f'پاسخ را فقط به زبان فارسی جواب بده به هیچ عنوان از زبان چینی در پاسخ استفاده نکن. سوال: {st.session_state.pending_prompt}')
158
  answer = response.split("Helpful Answer:")[-1].strip()
159
  if not answer:
160
  answer = "متأسفم، اطلاعات دقیقی در این مورد ندارم."