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 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(41 unmodified lines424344454546474849495051525353545556575758596013 unmodified lines7475767778798077787941 unmodified lines PPTX_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))' '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' 'caption': 'In high contrast ⬛' }, 'Ion Boardroom': { 'file': 'pptx_templates/Ion_Boardroom.pptx', 'caption': '🔴 Make some bold decisions' 'caption': 'Make some bold decisions 🟥' }, 'Urban Monochrome': { 'file': 'pptx_templates/Urban_monochrome.pptx', 'caption': '⚪ Marvel in a monochrome dream' '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).' )
app.py+13-21
global_config.py+4-8