Spaces:
Runtime error
Runtime error
Add feedback link and refactor some code
Browse filesFiles changed (2)
- app.py+13-21
- global_config.py-4
95 unmodified lines969798991001011021031042 unmodified lines1071081091101111121131141151161171181191201211221231241251261271281291306 unmodified lines13713813914014114214314414514695 unmodified lines)def display_page_header_content():"""Display content in the page header."""st.title(APP_TEXT['app_name'])2 unmodified lines'' # noqa: E501)def display_page_footer_content():"""Display content in the page footer."""st.text(APP_TEXT['tos'] + '\n\n' + APP_TEXT['tos2'])def build_ui():"""Display the input elements for content generation."""display_page_header_content()with st.expander('Usage Policies and Limitations'):display_page_footer_content()set_up_chat_ui()6 unmodified lineswith st.expander('Usage Instructions'):st.markdown(GlobalConfig.CHAT_USAGE_INSTRUCTIONS)st.markdown('SlideDeck AI is powered by' # noqa: E501' [Mistral-Nemo-Instruct-2407](https://huggingface.co/mistralai/Mistral-Nemo-Instruct-2407).')# view_messages = st.expander('View the messages in the session state')st.chat_message('ai').write(95 unmodified lines969798991001011021031042 unmodified lines1071081091101111121131146 unmodified lines12112212312412512612712812913013113213313413513613713895 unmodified lines)def build_ui():"""Display the input elements for content generation."""st.title(APP_TEXT['app_name'])2 unmodified lines'' # noqa: E501)with st.expander('Usage Policies and Limitations'):st.text(APP_TEXT['tos'] + '\n\n' + APP_TEXT['tos2'])set_up_chat_ui()6 unmodified lineswith st.expander('Usage Instructions'):st.markdown(GlobalConfig.CHAT_USAGE_INSTRUCTIONS)st.markdown('[SlideDeck AI](https://github.com/barun-saha/slide-deck-ai) is an Open-Source project.' # noqa: E501' It is is powered by' # noqa: E501' [Mistral-Nemo-Instruct-2407](https://huggingface.co/mistralai/Mistral-Nemo-Instruct-2407).' # noqa: E501)st.info('If you like SlideDeck AI, please consider leaving a heart ❤️ on the'' [Hugging Face Space](https://huggingface.co/spaces/barunsaha/slide-deck-ai/) or'' a star ⭐ on [GitHub](https://github.com/barun-saha/slide-deck-ai).'' Your [feedback](https://forms.gle/JECFBGhjvSj7moBx9) is appreciated.')# view_messages = st.expander('View the messages in the session state')st.chat_message('ai').write(
73 unmodified lines7475767778798081828373 unmodified lines' SlideDeck AI does not have access to the Web, apart for searching for images relevant'' to the slides. Photos are added probabilistically; transparency needs to be changed'' manually, if required.''\n\n''If you like SlideDeck AI, please consider leaving a heart ❤️ on the'' [Hugging Face Space](https://huggingface.co/spaces/barunsaha/slide-deck-ai/) or'' a star ⭐ on [GitHub](https://github.com/barun-saha/slide-deck-ai).')73 unmodified lines74757677787973 unmodified lines' SlideDeck AI does not have access to the Web, apart for searching for images relevant'' to the slides. Photos are added probabilistically; transparency needs to be changed'' manually, if required.')
app.py+13-21
global_config.py-4