Spaces:
Running
Running
marcellopoliti
commited on
Commit
•
2c4fa9b
1
Parent(s):
25ae6fc
bugfix spellchecker
Browse files- pages/manage_knowledge_box.py +0 -4
- requirements.txt +3 -1
pages/manage_knowledge_box.py
CHANGED
@@ -7,18 +7,14 @@ import pandas as pd
|
|
7 |
from tempfile import NamedTemporaryFile
|
8 |
import os
|
9 |
import yt_dlp as youtube_dl
|
10 |
-
import requests
|
11 |
-
from transformers import pipeline
|
12 |
from openai import OpenAI
|
13 |
import wave
|
14 |
from dotenv import load_dotenv
|
15 |
|
16 |
load_dotenv()
|
17 |
openai_key = os.getenv("OPENAI_API_KEY")
|
18 |
-
openai_key = st.secrets["OPENAI_API_KEY"]
|
19 |
|
20 |
st.title("Get knowledge boxes")
|
21 |
-
|
22 |
if st.button("Get current knowledge bases"):
|
23 |
kbs = get_current_knowledge_bases(client=client)
|
24 |
st.json(kbs)
|
|
|
7 |
from tempfile import NamedTemporaryFile
|
8 |
import os
|
9 |
import yt_dlp as youtube_dl
|
|
|
|
|
10 |
from openai import OpenAI
|
11 |
import wave
|
12 |
from dotenv import load_dotenv
|
13 |
|
14 |
load_dotenv()
|
15 |
openai_key = os.getenv("OPENAI_API_KEY")
|
|
|
16 |
|
17 |
st.title("Get knowledge boxes")
|
|
|
18 |
if st.button("Get current knowledge bases"):
|
19 |
kbs = get_current_knowledge_bases(client=client)
|
20 |
st.json(kbs)
|
requirements.txt
CHANGED
@@ -12,4 +12,6 @@ umap-learn==0.5.5
|
|
12 |
ipython
|
13 |
librosa
|
14 |
future
|
15 |
-
yt-dlp
|
|
|
|
|
|
12 |
ipython
|
13 |
librosa
|
14 |
future
|
15 |
+
yt-dlp
|
16 |
+
pysqlite3>=0.5.2
|
17 |
+
pyspellchecker>=0.8.1
|