hi humaarif155,
persian typed prompt/s is on problem:
test prompt : شیراز کجاست ؟
response :
google.generativeai.types.generation_types.StopCandidateException: This app has encountered an error. The original error message is redacted to prevent data leaks. Full error details have been recorded in the logs (if you're on Streamlit Cloud, click on 'Manage app' in the lower right of your app).
Traceback:
File "/home/adminuser/venv/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 535, in _run_script
exec(code, module.__dict__)
File "/mount/src/geminitextbot/main.py", line 63, in <module>
gemini_response = st.session_state.chat_session.send_message(user_prompt)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/adminuser/venv/lib/python3.11/site-packages/google/generativeai/generative_models.py", line 384, in send_message
raise generation_types.StopCandidateException(response.candidates[0])
hi humaarif155, persian typed prompt/s is on problem:
test prompt : شیراز کجاست ؟
response :
waiting for your fix commit , regards