Spaces:
Build error
Build error
Update app.py
Browse files123423 unmodified lines282930313233343536373839404142434441 unmodified lines8687888990919293949596979899100101102103104105106107108109110111112341 unmodified lines454455456457458459460461462463464465466467468469470471472473474475476158 unmodified lines63563663763863964064152 unmodified lines694695696697698699700701702703704# app.py - https://huggingface.co/spaces/JBHF/ChatWithAIForScienceDocs/ - 09-04-2024, 14:48 CET# Derived from https://huggingface.co/spaces/JBHF/NonToxicGlazeAdvisor_Chat_with_Docs_Groq_Edition_1/tree/main# NonToxicGlazeAdvisor_Chat_with_Docs_Groq_Edition_1 - app.py - 08-04-202423 unmodified lines# 03-04-2024import streamlit as sttab1, tab2, tab3 = st.tabs(["AI Adviseur voor niet-giftige glazuren", "Uitleg", "Voorbeeld vragen"])#with tab1:# st.header("A cat")# st.image("https://static.streamlit.io/examples/cat.jpg", width=200)with tab2:st.header("Uitleg")st.image("De fritte oven - een schets van het proces.jpg", width=200)st.header("Uitleg over gebruik en technische achtergronden van deze AI adviseur voor niet-giftige glazuren app:", divider='rainbow')st.write("""Deze online app gebruikt Artificial Intelligence (AI) om al uw vragen te beantwoorden op het gebied van niet giftige glazuur technieken. De app bevat teksten over dit onderwerp geschreven door keramist Victor Benckhuijsen, die daarin zijn ruime ervaring van meer dan 30 jaar. Samen vormen die teksten een boek over niet giftige glazuurtechnieken, zowel de theorie als de praktijk daarvan. In feite stelt deze app je in staat om vragen te stellen aan (de inhoud van) dit boek! Je kunt als het ware praten met dit boek.41 unmodified linesVeel plezier en nuttig gebruik van de AI app !""")st.title("Adviseur voor niet-giftige glazuren:")st.subheader("Een gereedschap gebaseerd op Kunstmatige Intelligentie (AI) om advies te krijgen over niet-giftige keramische glazuren voor aardewerk temperatuur bereiken.")st.write("---------------------------------")st.subheader("Victor Benckhuijsen : (Glazuur technieken / Keramiek) - KERAMIST DES VADERLANDS")st.subheader("(ALL RIGHTS RESERVED)")st.image('Victor_Benckhuijsen_2.png', caption='Victor Benckhuijsen', width=100)# st.subheader("---------------------------------")# st.write("---------------------------------")st.subheader("Jan Bours : Artificial Intelligence / Data Science / Natural Language Processing")st.subheader("(ALL RIGHTS RESERVED)")st.image('Jan_Bours_2.png', caption='Jan Bours', width=100)st.write("---------------------------------")st.subheader("Chat with Docs - Using AI: 'mixtral-8x7b-32768' Groq Edition (Very Fast!) - VERSION 2 - April 8, 2024")st.write("---------------------------------")with tab3:st.header("Voorbeeld vragen")st.write("De fritte oven - een schets van het proces:")st.image("De fritte oven - een schets van het proces.jpg", width=200)# https://docs.streamlit.io/library/api-reference/widgets/st.text_area# st.text_area341 unmodified lines# st.subheader("Chat with Docs - Using AI: 'mixtral-8x7b-32768' Groq Edition (Very Fast!) - VERSION 1 - March 18, 2024")# st.write("---------------------------------")st.title("Adviseur voor niet-giftige glazuren:")st.subheader("Een gereedschap gebaseerd op Kunstmatige Intelligentie (AI) om advies te krijgen over niet-giftige keramische glazuren voor aardewerk temperatuur bereiken.")st.write("---------------------------------")st.subheader("Victor Benckhuijsen : (Glazuur technieken / Keramiek) - KERAMIST DES VADERLANDS")st.subheader("(ALL RIGHTS RESERVED)")st.image('Victor_Benckhuijsen_2.png', caption='Victor Benckhuijsen', width=100)# st.subheader("---------------------------------")# st.write("---------------------------------")st.subheader("Jan Bours : Artificial Intelligence / Data Science / Natural Language Processing")st.subheader("(ALL RIGHTS RESERVED)")st.image('Jan_Bours_2.png', caption='Jan Bours', width=100)st.write("---------------------------------")st.subheader("Chat with Docs - Using AI: 'mixtral-8x7b-32768' Groq Edition (Very Fast!) - VERSION 2 - April 8, 2024")st.write("---------------------------------")# st.header("LIST OF ALL THE LOADED DOCUMENTS: ")st.header("LIJST MET ALLE ACTUEEL GELADEN DOCUMENTEN: ")st.write("")pdf_files = glob.glob("*.pdf")158 unmodified linesst.write("---------------------------------")# st.title("Chat with Docs - Groq Edition :) ")# st.title("Literature Based Research (LBR) - A. Unzicker and J. Bours - Chat with Docs - Groq Edition (Very Fast!) - VERSION 3 - March 8 2024")llm = ChatGroq(temperature=0.2,52 unmodified lineswith st.sidebar:# openai_api_key = st.text_input("OpenAI API Key", key="chatbot_api_key", type="password")UserEmailAdress = st.text_input("Vul Uw email adres hier in: ", key="UserEmailAdress", type="password")# "[Zelf keramische glazuren NON TOXIC samenstellen vanuit 1 basisglazuur](http://www.ceramicconcepts.nl/)""[Keramische ateliers Victor Benckhuijsen](https://victorglazuren.nl/)""[Keramiek Victor Glazuren Victor Benckhuijsen - Instagram](https://www.instagram.com/benckhuijsenvictor/?hl=am-et)""[Keramiek Victor Glazuren Victor Benckhuijsen - Facebook](https://www.facebook.com/harryjamaar)""[Keramiek Victor Glazuren Victor Benckhuijsen - YouTube](https://www.youtube.com/@kleienhoop/videos)"st.title("๐ฌ Chatbot")st.caption("๐ A streamlit chatbot powered by mixtral-8x7b-32768 Groq LLM (VERY FAST !). temperature=0.2")123423 unmodified lines282930313233343536373839404142434441 unmodified lines8687888990919293949596979899100101102103104105106107108109110111112341 unmodified lines454455456457458459460461462463464465466467468469470471472473474475476158 unmodified lines63563663763863964064152 unmodified lines694695696697698699700701702703704705706707708# app.py - https://huggingface.co/spaces/JBHF/ChatWithAIForScienceDocs/ - 11-04-2024, 11:30 CET# Derived from https://huggingface.co/spaces/JBHF/NonToxicGlazeAdvisor_Chat_with_Docs_Groq_Edition_1/tree/main# NonToxicGlazeAdvisor_Chat_with_Docs_Groq_Edition_1 - app.py - 08-04-202423 unmodified lines# 03-04-2024import streamlit as sttab1, tab2, tab3 = st.tabs(["Chat with AI For Science Documents", "Explanantion", "Examples of Questions you can ask"])#with tab1:# st.header("A cat")# st.image("https://static.streamlit.io/examples/cat.jpg", width=200)with tab2:st.header("Explanation")# st.image("De fritte oven - een schets van het proces.jpg", width=200)st.header("Explanation about the use and technical background of this app for chatting with documents about AI For Science:", divider='rainbow')st.write("""Deze online app gebruikt Artificial Intelligence (AI) om al uw vragen te beantwoorden op het gebied van niet giftige glazuur technieken. De app bevat teksten over dit onderwerp geschreven door keramist Victor Benckhuijsen, die daarin zijn ruime ervaring van meer dan 30 jaar. Samen vormen die teksten een boek over niet giftige glazuurtechnieken, zowel de theorie als de praktijk daarvan. In feite stelt deze app je in staat om vragen te stellen aan (de inhoud van) dit boek! Je kunt als het ware praten met dit boek.41 unmodified linesVeel plezier en nuttig gebruik van de AI app !""")st.title("Chat with AI For Science documents:")st.subheader("A tool based on AI for getting answers to your questions about the domain of AI For Science.")st.write("---------------------------------")st.subheader("Dr. Alexander Unzicker: (Physics)")st.subheader("(ALL RIGHTS RESERVED)")st.image('Dr. Alexander Unzicker.png', caption='Dr. Alexander Unzicker', width=100)# st.subheader("---------------------------------")# st.write("---------------------------------")st.subheader("Jan Bours : Artificial Intelligence / Data Science / Natural Language Processing")st.subheader("(ALL RIGHTS RESERVED)")st.image('Jan_Bours_2.png', caption='Jan Bours', width=100)st.write("---------------------------------")st.subheader("Chat with Docs - Using AI: 'mixtral-8x7b-32768' Groq Edition (Very Fast!) - VERSION 1 - April 11, 2024")st.write("---------------------------------")with tab3:st.header("Examples of Questions you can ask")# st.write("De fritte oven - een schets van het proces:")# st.image("De fritte oven - een schets van het proces.jpg", width=200)# https://docs.streamlit.io/library/api-reference/widgets/st.text_area# st.text_area341 unmodified lines# st.subheader("Chat with Docs - Using AI: 'mixtral-8x7b-32768' Groq Edition (Very Fast!) - VERSION 1 - March 18, 2024")# st.write("---------------------------------")st.title("Chat with AI For Science documents:")st.subheader("A tool based on AI for getting answers to your questions about the domain of AI For Science.")st.write("---------------------------------")st.subheader("Dr. Alexander Unzicker: (Physics)")st.subheader("(ALL RIGHTS RESERVED)")st.image('Dr. Alexander Unzicker.png', caption='Dr. Alexander Unzicker', width=100)# st.subheader("---------------------------------")# st.write("---------------------------------")st.subheader("Jan Bours : Artificial Intelligence / Data Science / Natural Language Processing")st.subheader("(ALL RIGHTS RESERVED)")st.image('Jan_Bours_2.png', caption='Jan Bours', width=100)st.write("---------------------------------")st.subheader("Chat with Docs - Using AI: 'mixtral-8x7b-32768' Groq Edition (Very Fast!) - VERSION 1 - April 11, 2024")st.write("---------------------------------")st.header("LIST OF ALL THE LOADED DOCUMENTS: ")# st.header("LIJST MET ALLE ACTUEEL GELADEN DOCUMENTEN: ")st.write("")pdf_files = glob.glob("*.pdf")158 unmodified linesst.write("---------------------------------")# st.title("Chat with Docs - Groq Edition :) ")# st.title("Literature Based Research (LBR) - A. Unzicker and J. Bours - Chat with Docs - Groq Edition (Very Fast!) - VERSION 1 - April 11 2024")llm = ChatGroq(temperature=0.2,52 unmodified lineswith st.sidebar:# openai_api_key = st.text_input("OpenAI API Key", key="chatbot_api_key", type="password")UserEmailAdress = st.text_input("Vul Uw email adres hier in: ", key="UserEmailAdress", type="password")# https://www.linkedin.com/in/alexander-unzicker-2555b13a/"[Dr Alxander Unzicker (Physics) - LinkedIn profile](https://www.linkedin.com/in/alexander-unzicker-2555b13a/)""[Jan Bours (AI, Data Science and Natural Language Processin (NLP)) - LinkedIn profile](https://www.linkedin.com/in/janbours/)"# "[Zelf keramische glazuren NON TOXIC samenstellen vanuit 1 basisglazuur](http://www.ceramicconcepts.nl/)"# "[Keramische ateliers Victor Benckhuijsen](https://victorglazuren.nl/)"# "[Keramiek Victor Glazuren Victor Benckhuijsen - Instagram](https://www.instagram.com/benckhuijsenvictor/?hl=am-et)"# "[Keramiek Victor Glazuren Victor Benckhuijsen - Facebook](https://www.facebook.com/harryjamaar)"# "[Keramiek Victor Glazuren Victor Benckhuijsen - YouTube](https://www.youtube.com/@kleienhoop/videos)"st.title("๐ฌ Chatbot")st.caption("๐ A streamlit chatbot powered by mixtral-8x7b-32768 Groq LLM (VERY FAST !). temperature=0.2")
app.py+31-27