-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.py~
73 lines (54 loc) · 2.6 KB
/
app.py~
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import os
import streamlit as st
from PIL import Image
import openai
openai_api_key = os.getenv("OPENAI_API_KEY")
# openai_api_key = st.secrets["OPENAI_API_KEY"]
# IMAGES_DIR = os.path.join(os.path.dirname(__file__), 'images/productoer.jpeg')
image = Image.open("images/producttoer.jpeg")
from streamlit.logger import get_logger
LOGGER = get_logger(__name__)
ENCODINGS = 'cl100k_base'
def run():
st.set_page_config(
page_title="Berend-Botje Skills",
page_icon="👋",
layout="wide",
initial_sidebar_state="collapsed"
)
col1, col2 = st.columns(2)
with col1:
st.markdown("""
## Welkom bij Berend-Botje Skills 👋 """)
st.markdown("""
##### Berend-Botje is een slimme AI assistent die je helpt om *smart* te werken.""")
st.markdown("""
###### Afhankelijk van de taak zal Berend een keuze maken welke skills er nodig zijn. De skills zijn allen **Powered by OpenAI** en maken gebruik van AI modellen als ChatGPT. Het verschil met ChatGPT is dat alle informatie binnen de omgeving van de gebruiker blijft!"""
)
with col2:
st.image(image, caption=None, use_column_width=True, clamp=True, channels="RGB", output_format="auto")
# st.sidebar.success("Kies één van Berend's skills")
st.markdown(""" ##### 👈 Voorbeelden.
**1. [De Lesplanner](Lesplan_Demo)**
**2. [De Notulist](Mapping_Demo)**
**3. [De Dataanalist](DataFrame_Demo)**
**4. [De Datavormgever](Plotting_Demo)**
**5. [De Chatbot](Chat_Demo)**
**8. [De Samenvatter](Samenvatter_Demo)**
**Disclaimer: Aan het gebruik, of resulaten van Berend-Botje Skills kunnen geen rechten worden verleend. Noch zijn wij aansprakelijk voor enig gevolg van dit gebruik. Bedenk dat de voorbeelden die hier getoond worden nog in een premature fase verkeren: het is werk onder constructie...**
""")
if __name__ == "__main__":
run()