Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,6 +6,7 @@ import time
|
|
| 6 |
import streamlit as st
|
| 7 |
import base64
|
| 8 |
from streamlit_mic_recorder import mic_recorder
|
|
|
|
| 9 |
MODEL_NAME = "drinktoomuchsax/whisper-small-hi"
|
| 10 |
lang = "en"
|
| 11 |
|
|
@@ -20,6 +21,10 @@ BASETEN_KEY = os.environ.get("BASETEN_KEY", None)
|
|
| 20 |
NOTION_KEY = os.environ.get("NOTION_API_KEY", None)
|
| 21 |
NOTION_DB_ID = os.environ.get("NOTION_DB_ID", None)
|
| 22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
st.set_page_config(layout="wide")
|
| 24 |
# Load custom CSS to integrate Bootstrap, Font Awesome, and Google Fonts
|
| 25 |
st.markdown('''
|
|
|
|
| 6 |
import streamlit as st
|
| 7 |
import base64
|
| 8 |
from streamlit_mic_recorder import mic_recorder
|
| 9 |
+
from notion_client import Client
|
| 10 |
MODEL_NAME = "drinktoomuchsax/whisper-small-hi"
|
| 11 |
lang = "en"
|
| 12 |
|
|
|
|
| 21 |
NOTION_KEY = os.environ.get("NOTION_API_KEY", None)
|
| 22 |
NOTION_DB_ID = os.environ.get("NOTION_DB_ID", None)
|
| 23 |
|
| 24 |
+
notion = Client(auth=f"{NOTION_KEY}")
|
| 25 |
+
|
| 26 |
+
database_id = f"{NOTION_DB_ID}"
|
| 27 |
+
|
| 28 |
st.set_page_config(layout="wide")
|
| 29 |
# Load custom CSS to integrate Bootstrap, Font Awesome, and Google Fonts
|
| 30 |
st.markdown('''
|