M17idd commited on
Commit
0af9b03
·
1 Parent(s): 21bf972

right align

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -103,7 +103,7 @@ if st.session_state.pending_prompt:
103
  thinking_placeholder = st.empty()
104
  thinking_placeholder.markdown("🤖 در حال فکر کردن...")
105
 
106
- response = chain.run(f'persian {st.session_state.pending_prompt}')
107
  helpful_answer = response.split("Helpful Answer:")[-1]
108
  if not helpful_answer.strip():
109
  helpful_answer = "اطلاعات دقیقی در دسترس نیست، اما می‌توانم به شما کمک کنم تا از منابع دیگر بررسی کنید."
 
103
  thinking_placeholder = st.empty()
104
  thinking_placeholder.markdown("🤖 در حال فکر کردن...")
105
 
106
+ response = chain.run(f'پاسخ را فقط به زبان فارسی بده. سوال: {st.session_state.pending_prompt}')
107
  helpful_answer = response.split("Helpful Answer:")[-1]
108
  if not helpful_answer.strip():
109
  helpful_answer = "اطلاعات دقیقی در دسترس نیست، اما می‌توانم به شما کمک کنم تا از منابع دیگر بررسی کنید."