-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
37 lines (29 loc) · 939 Bytes
/
app.py
File metadata and controls
37 lines (29 loc) · 939 Bytes
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
import streamlit as st
# import OpenAI_NoteTaker as nt
# import OpenAI_Summarizer as sm
# import OpenAI_Transcriber as transcriber
import os
# NOTE: magic-bin currently doesn't provide support for linux, but it supports x32, x64 and OSX
# const
# api_key_local = st.secrets['OPEN_API_KEY']
# functions
def testCallback(file):
# parse note taker file
if not file:
print('Input file first.')
return
print('Processing...')
print(file)
# Page Content
st.title('Note Taker by Lanz Lagman')
file = st.file_uploader("Upload your audio here!")
st.button("Submit", on_click=testCallback(file), use_container_width=True)
# st.write(api_key_local)
# TODO: implement a basic file upload that
st.divider()
st.write("""
<div style="display: flex; flex-direction: column; align-items: end;">
<span>Streamlit build designed by Jay Cruz</span>
<span>Source code here</span>
</div>
""", unsafe_allow_html=True)