Commit
·
dcf09f2
1
Parent(s):
2cfe45c
move download nltk punkt to app.py
Browse files- app.py +4 -0
- event_handlers.py +0 -2
app.py
CHANGED
|
@@ -3,6 +3,10 @@ from config import *
|
|
| 3 |
from event_handlers import *
|
| 4 |
|
| 5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
# --- Gradio UI Definition ---
|
| 7 |
# theme = gr.themes.Default(primary_hue=gr.themes.colors.blue).set()
|
| 8 |
theme = gr.themes.Ocean(primary_hue=gr.themes.colors.blue).set()
|
|
|
|
| 3 |
from event_handlers import *
|
| 4 |
|
| 5 |
|
| 6 |
+
import nltk
|
| 7 |
+
|
| 8 |
+
nltk.download("punkt")
|
| 9 |
+
|
| 10 |
# --- Gradio UI Definition ---
|
| 11 |
# theme = gr.themes.Default(primary_hue=gr.themes.colors.blue).set()
|
| 12 |
theme = gr.themes.Ocean(primary_hue=gr.themes.colors.blue).set()
|
event_handlers.py
CHANGED
|
@@ -12,9 +12,7 @@ import logging
|
|
| 12 |
import pandas as pd
|
| 13 |
import gc
|
| 14 |
|
| 15 |
-
import nltk
|
| 16 |
|
| 17 |
-
nltk.download("punkt")
|
| 18 |
from nltk.tokenize import sent_tokenize
|
| 19 |
|
| 20 |
from core.data_model import AudioFile
|
|
|
|
| 12 |
import pandas as pd
|
| 13 |
import gc
|
| 14 |
|
|
|
|
| 15 |
|
|
|
|
| 16 |
from nltk.tokenize import sent_tokenize
|
| 17 |
|
| 18 |
from core.data_model import AudioFile
|