Spaces:
Runtime error
Runtime error
Merge pull request #39 from barun-saha/visual
Browse filesFiles changed (2)
- app.py+13-21
- global_config.py+4-8
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(
41 unmodified lines4243444546474849505152535455565758596013 unmodified lines7475767778798081828341 unmodified linesPPTX_TEMPLATE_FILES = {'Basic': {'file': 'pptx_templates/Blank.pptx','caption': '🟠 A good start (Uses [photos](https://unsplash.com/photos/AFZ-qBPEceA) by [cetteup](https://unsplash.com/@cetteup?utm_content=creditCopyText&utm_medium=referral&utm_source=unsplash) on [Unsplash](https://unsplash.com/photos/a-foggy-forest-filled-with-lots-of-trees-d3ci37Gcgxg?utm_content=creditCopyText&utm_medium=referral&utm_source=unsplash))'},'Minimalist Sales Pitch': {'file': 'pptx_templates/Minimalist_sales_pitch.pptx','caption': '⚫ In high contrast'},'Ion Boardroom': {'file': 'pptx_templates/Ion_Boardroom.pptx','caption': '🔴 Make some bold decisions'},'Urban Monochrome': {'file': 'pptx_templates/Urban_monochrome.pptx','caption': '⚪ Marvel in a monochrome dream'},}13 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).')41 unmodified lines4243444546474849505152535455565758596013 unmodified lines74757677787941 unmodified linesPPTX_TEMPLATE_FILES = {'Basic': {'file': 'pptx_templates/Blank.pptx','caption': 'A good start (Uses [photos](https://unsplash.com/photos/AFZ-qBPEceA) by [cetteup](https://unsplash.com/@cetteup?utm_content=creditCopyText&utm_medium=referral&utm_source=unsplash) on [Unsplash](https://unsplash.com/photos/a-foggy-forest-filled-with-lots-of-trees-d3ci37Gcgxg?utm_content=creditCopyText&utm_medium=referral&utm_source=unsplash)) 🟧'},'Minimalist Sales Pitch': {'file': 'pptx_templates/Minimalist_sales_pitch.pptx','caption': 'In high contrast ⬛'},'Ion Boardroom': {'file': 'pptx_templates/Ion_Boardroom.pptx','caption': 'Make some bold decisions 🟥'},'Urban Monochrome': {'file': 'pptx_templates/Urban_monochrome.pptx','caption': 'Marvel in a monochrome dream ⬜'},}13 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-8