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 lines96979899991001011011021031042 unmodified lines1071081091101111121131141151161171181191201211221231241251101271111121131146 unmodified lines12112212312414014112512612712812913013113213313413513613713895 unmodified lines)
def display_page_header_content():def build_ui(): """ Display content in the page header. Display the input elements for content generation. """
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() st.text(APP_TEXT['tos'] + '\n\n' + APP_TEXT['tos2'])
set_up_chat_ui()
6 unmodified lines with 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 'SlideDeck AI is powered by' # noqa: E501 ' [Mistral-Nemo-Instruct-2407](https://huggingface.co/mistralai/Mistral-Nemo-Instruct-2407).' ' 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 lines7475767778798077787973 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).' )
app.py+13-21
global_config.py-4