Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
# app.py - https://huggingface.co/spaces/JBHF/ChatWithAIForScienceDocs/ -
|
2 |
# Derived from https://huggingface.co/spaces/JBHF/NonToxicGlazeAdvisor_Chat_with_Docs_Groq_Edition_1/tree/main
|
3 |
|
4 |
# NonToxicGlazeAdvisor_Chat_with_Docs_Groq_Edition_1 - app.py - 08-04-2024
|
@@ -28,17 +28,17 @@
|
|
28 |
# 03-04-2024
|
29 |
import streamlit as st
|
30 |
|
31 |
-
tab1, tab2, tab3 = st.tabs(["AI
|
32 |
|
33 |
#with tab1:
|
34 |
# st.header("A cat")
|
35 |
# st.image("https://static.streamlit.io/examples/cat.jpg", width=200)
|
36 |
|
37 |
with tab2:
|
38 |
-
st.header("
|
39 |
-
st.image("De fritte oven - een schets van het proces.jpg", width=200)
|
40 |
|
41 |
-
st.header("
|
42 |
|
43 |
st.write("""
|
44 |
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.
|
@@ -86,27 +86,27 @@ Tot zover deze uitleg over het gebruik en enige technische achtergronden van dez
|
|
86 |
Veel plezier en nuttig gebruik van de AI app !
|
87 |
""")
|
88 |
|
89 |
-
st.title("
|
90 |
-
st.subheader("
|
91 |
st.write("---------------------------------")
|
92 |
-
st.subheader("
|
93 |
st.subheader("(ALL RIGHTS RESERVED)")
|
94 |
-
st.image('
|
95 |
# st.subheader("---------------------------------")
|
96 |
# st.write("---------------------------------")
|
97 |
-
st.subheader("Jan Bours
|
98 |
st.subheader("(ALL RIGHTS RESERVED)")
|
99 |
st.image('Jan_Bours_2.png', caption='Jan Bours', width=100)
|
100 |
st.write("---------------------------------")
|
101 |
-
st.subheader("Chat with Docs - Using AI: 'mixtral-8x7b-32768' Groq Edition (Very Fast!) - VERSION
|
102 |
st.write("---------------------------------")
|
103 |
|
104 |
|
105 |
|
106 |
with tab3:
|
107 |
-
st.header("
|
108 |
-
st.write("De fritte oven - een schets van het proces:")
|
109 |
-
st.image("De fritte oven - een schets van het proces.jpg", width=200)
|
110 |
|
111 |
# https://docs.streamlit.io/library/api-reference/widgets/st.text_area
|
112 |
# st.text_area
|
@@ -454,23 +454,23 @@ with tab1:
|
|
454 |
# st.subheader("Chat with Docs - Using AI: 'mixtral-8x7b-32768' Groq Edition (Very Fast!) - VERSION 1 - March 18, 2024")
|
455 |
# st.write("---------------------------------")
|
456 |
|
457 |
-
st.title("
|
458 |
-
st.subheader("
|
459 |
st.write("---------------------------------")
|
460 |
-
st.subheader("
|
461 |
st.subheader("(ALL RIGHTS RESERVED)")
|
462 |
-
st.image('
|
463 |
# st.subheader("---------------------------------")
|
464 |
# st.write("---------------------------------")
|
465 |
-
st.subheader("Jan Bours
|
466 |
st.subheader("(ALL RIGHTS RESERVED)")
|
467 |
st.image('Jan_Bours_2.png', caption='Jan Bours', width=100)
|
468 |
st.write("---------------------------------")
|
469 |
-
st.subheader("Chat with Docs - Using AI: 'mixtral-8x7b-32768' Groq Edition (Very Fast!) - VERSION
|
470 |
st.write("---------------------------------")
|
471 |
|
472 |
-
|
473 |
-
st.header("LIJST MET ALLE ACTUEEL GELADEN DOCUMENTEN: ")
|
474 |
|
475 |
st.write("")
|
476 |
pdf_files = glob.glob("*.pdf")
|
@@ -635,7 +635,7 @@ with tab1:
|
|
635 |
st.write("---------------------------------")
|
636 |
|
637 |
# st.title("Chat with Docs - Groq Edition :) ")
|
638 |
-
# st.title("Literature Based Research (LBR) - A. Unzicker and J. Bours - Chat with Docs - Groq Edition (Very Fast!) - VERSION
|
639 |
|
640 |
llm = ChatGroq(
|
641 |
temperature=0.2,
|
@@ -694,11 +694,15 @@ with tab1:
|
|
694 |
with st.sidebar:
|
695 |
# openai_api_key = st.text_input("OpenAI API Key", key="chatbot_api_key", type="password")
|
696 |
UserEmailAdress = st.text_input("Vul Uw email adres hier in: ", key="UserEmailAdress", type="password")
|
|
|
|
|
|
|
|
|
697 |
# "[Zelf keramische glazuren NON TOXIC samenstellen vanuit 1 basisglazuur](http://www.ceramicconcepts.nl/)"
|
698 |
-
"[Keramische ateliers Victor Benckhuijsen](https://victorglazuren.nl/)"
|
699 |
-
"[Keramiek Victor Glazuren Victor Benckhuijsen - Instagram](https://www.instagram.com/benckhuijsenvictor/?hl=am-et)"
|
700 |
-
"[Keramiek Victor Glazuren Victor Benckhuijsen - Facebook](https://www.facebook.com/harryjamaar)"
|
701 |
-
"[Keramiek Victor Glazuren Victor Benckhuijsen - YouTube](https://www.youtube.com/@kleienhoop/videos)"
|
702 |
|
703 |
st.title("π¬ Chatbot")
|
704 |
st.caption("π A streamlit chatbot powered by mixtral-8x7b-32768 Groq LLM (VERY FAST !). temperature=0.2")
|
|
|
1 |
+
# app.py - https://huggingface.co/spaces/JBHF/ChatWithAIForScienceDocs/ - 11-04-2024, 11:30 CET
|
2 |
# Derived from https://huggingface.co/spaces/JBHF/NonToxicGlazeAdvisor_Chat_with_Docs_Groq_Edition_1/tree/main
|
3 |
|
4 |
# NonToxicGlazeAdvisor_Chat_with_Docs_Groq_Edition_1 - app.py - 08-04-2024
|
|
|
28 |
# 03-04-2024
|
29 |
import streamlit as st
|
30 |
|
31 |
+
tab1, tab2, tab3 = st.tabs(["Chat with AI For Science Documents", "Explanantion", "Examples of Questions you can ask"])
|
32 |
|
33 |
#with tab1:
|
34 |
# st.header("A cat")
|
35 |
# st.image("https://static.streamlit.io/examples/cat.jpg", width=200)
|
36 |
|
37 |
with tab2:
|
38 |
+
st.header("Explanation")
|
39 |
+
# st.image("De fritte oven - een schets van het proces.jpg", width=200)
|
40 |
|
41 |
+
st.header("Explanation about the use and technical background of this app for chatting with documents about AI For Science:", divider='rainbow')
|
42 |
|
43 |
st.write("""
|
44 |
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.
|
|
|
86 |
Veel plezier en nuttig gebruik van de AI app !
|
87 |
""")
|
88 |
|
89 |
+
st.title("Chat with AI For Science documents:")
|
90 |
+
st.subheader("A tool based on AI for getting answers to your questions about the domain of AI For Science.")
|
91 |
st.write("---------------------------------")
|
92 |
+
st.subheader("Dr. Alexander Unzicker: (Physics)")
|
93 |
st.subheader("(ALL RIGHTS RESERVED)")
|
94 |
+
st.image('Dr. Alexander Unzicker.png', caption='Dr. Alexander Unzicker', width=100)
|
95 |
# st.subheader("---------------------------------")
|
96 |
# st.write("---------------------------------")
|
97 |
+
st.subheader("Jan Bours : Artificial Intelligence / Data Science / Natural Language Processing")
|
98 |
st.subheader("(ALL RIGHTS RESERVED)")
|
99 |
st.image('Jan_Bours_2.png', caption='Jan Bours', width=100)
|
100 |
st.write("---------------------------------")
|
101 |
+
st.subheader("Chat with Docs - Using AI: 'mixtral-8x7b-32768' Groq Edition (Very Fast!) - VERSION 1 - April 11, 2024")
|
102 |
st.write("---------------------------------")
|
103 |
|
104 |
|
105 |
|
106 |
with tab3:
|
107 |
+
st.header("Examples of Questions you can ask")
|
108 |
+
# st.write("De fritte oven - een schets van het proces:")
|
109 |
+
# st.image("De fritte oven - een schets van het proces.jpg", width=200)
|
110 |
|
111 |
# https://docs.streamlit.io/library/api-reference/widgets/st.text_area
|
112 |
# st.text_area
|
|
|
454 |
# st.subheader("Chat with Docs - Using AI: 'mixtral-8x7b-32768' Groq Edition (Very Fast!) - VERSION 1 - March 18, 2024")
|
455 |
# st.write("---------------------------------")
|
456 |
|
457 |
+
st.title("Chat with AI For Science documents:")
|
458 |
+
st.subheader("A tool based on AI for getting answers to your questions about the domain of AI For Science.")
|
459 |
st.write("---------------------------------")
|
460 |
+
st.subheader("Dr. Alexander Unzicker: (Physics)")
|
461 |
st.subheader("(ALL RIGHTS RESERVED)")
|
462 |
+
st.image('Dr. Alexander Unzicker.png', caption='Dr. Alexander Unzicker', width=100)
|
463 |
# st.subheader("---------------------------------")
|
464 |
# st.write("---------------------------------")
|
465 |
+
st.subheader("Jan Bours : Artificial Intelligence / Data Science / Natural Language Processing")
|
466 |
st.subheader("(ALL RIGHTS RESERVED)")
|
467 |
st.image('Jan_Bours_2.png', caption='Jan Bours', width=100)
|
468 |
st.write("---------------------------------")
|
469 |
+
st.subheader("Chat with Docs - Using AI: 'mixtral-8x7b-32768' Groq Edition (Very Fast!) - VERSION 1 - April 11, 2024")
|
470 |
st.write("---------------------------------")
|
471 |
|
472 |
+
st.header("LIST OF ALL THE LOADED DOCUMENTS: ")
|
473 |
+
# st.header("LIJST MET ALLE ACTUEEL GELADEN DOCUMENTEN: ")
|
474 |
|
475 |
st.write("")
|
476 |
pdf_files = glob.glob("*.pdf")
|
|
|
635 |
st.write("---------------------------------")
|
636 |
|
637 |
# st.title("Chat with Docs - Groq Edition :) ")
|
638 |
+
# st.title("Literature Based Research (LBR) - A. Unzicker and J. Bours - Chat with Docs - Groq Edition (Very Fast!) - VERSION 1 - April 11 2024")
|
639 |
|
640 |
llm = ChatGroq(
|
641 |
temperature=0.2,
|
|
|
694 |
with st.sidebar:
|
695 |
# openai_api_key = st.text_input("OpenAI API Key", key="chatbot_api_key", type="password")
|
696 |
UserEmailAdress = st.text_input("Vul Uw email adres hier in: ", key="UserEmailAdress", type="password")
|
697 |
+
# https://www.linkedin.com/in/alexander-unzicker-2555b13a/
|
698 |
+
"[Dr Alxander Unzicker (Physics) - LinkedIn profile](https://www.linkedin.com/in/alexander-unzicker-2555b13a/)"
|
699 |
+
"[Jan Bours (AI, Data Science and Natural Language Processin (NLP)) - LinkedIn profile](https://www.linkedin.com/in/janbours/)"
|
700 |
+
|
701 |
# "[Zelf keramische glazuren NON TOXIC samenstellen vanuit 1 basisglazuur](http://www.ceramicconcepts.nl/)"
|
702 |
+
# "[Keramische ateliers Victor Benckhuijsen](https://victorglazuren.nl/)"
|
703 |
+
# "[Keramiek Victor Glazuren Victor Benckhuijsen - Instagram](https://www.instagram.com/benckhuijsenvictor/?hl=am-et)"
|
704 |
+
# "[Keramiek Victor Glazuren Victor Benckhuijsen - Facebook](https://www.facebook.com/harryjamaar)"
|
705 |
+
# "[Keramiek Victor Glazuren Victor Benckhuijsen - YouTube](https://www.youtube.com/@kleienhoop/videos)"
|
706 |
|
707 |
st.title("π¬ Chatbot")
|
708 |
st.caption("π A streamlit chatbot powered by mixtral-8x7b-32768 Groq LLM (VERY FAST !). temperature=0.2")
|