Spaces:
Sleeping
Sleeping
Commit ·
d941be5
1
Parent(s): b1a5586
Add application file
Browse files- app.py +4 -4
- requirements.txt +2 -2
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
|
| 6 |
import gradio as gr
|
| 7 |
from langchain.text_splitter import CharacterTextSplitter
|
|
|
|
| 1 |
+
import nltk
|
| 2 |
+
nltk.download('averaged_perceptron_tagger_eng')
|
| 3 |
+
nltk.download("punkt")
|
| 4 |
+
nltk.download('punkt_tab')
|
| 5 |
|
| 6 |
import gradio as gr
|
| 7 |
from langchain.text_splitter import CharacterTextSplitter
|
requirements.txt
CHANGED
|
@@ -8,5 +8,5 @@ langchain==0.1.1
|
|
| 8 |
langchain-community==0.0.13
|
| 9 |
unstructured==0.12.2
|
| 10 |
huggingface_hub>=0.20.0
|
| 11 |
-
|
| 12 |
-
|
|
|
|
| 8 |
langchain-community==0.0.13
|
| 9 |
unstructured==0.12.2
|
| 10 |
huggingface_hub>=0.20.0
|
| 11 |
+
gradio
|
| 12 |
+
nltk
|