Spaces:
Running
Running
Commit
·
5d38d36
1
Parent(s):
c69bbef
Remove NLTK dependency and related downloads; clean up requirements
Browse files- app.py +0 -3
- requirements.txt +0 -2
app.py
CHANGED
@@ -1,6 +1,5 @@
|
|
1 |
import gradio as gr
|
2 |
from main import main
|
3 |
-
import nltk
|
4 |
|
5 |
def rexplore_summarizer(corpus):
|
6 |
response = main(corpus)
|
@@ -52,6 +51,4 @@ with gr.Blocks(theme=theme, title="ReXplore Summarizer", fill_height=True) as ap
|
|
52 |
)
|
53 |
clear_btn.click(clear_everything, inputs=[text_corpus, raw_data, summary, mindmap], outputs=[text_corpus, raw_data, summary, mindmap], show_api=False)
|
54 |
|
55 |
-
nltk.download('punkt')
|
56 |
-
nltk.download('punkt_tab')
|
57 |
app.queue(default_concurrency_limit=1).launch(show_api=True)
|
|
|
1 |
import gradio as gr
|
2 |
from main import main
|
|
|
3 |
|
4 |
def rexplore_summarizer(corpus):
|
5 |
response = main(corpus)
|
|
|
51 |
)
|
52 |
clear_btn.click(clear_everything, inputs=[text_corpus, raw_data, summary, mindmap], outputs=[text_corpus, raw_data, summary, mindmap], show_api=False)
|
53 |
|
|
|
|
|
54 |
app.queue(default_concurrency_limit=1).launch(show_api=True)
|
requirements.txt
CHANGED
@@ -1,5 +1,3 @@
|
|
1 |
openai==1.57.3
|
2 |
gradio==5.8.0
|
3 |
python-dotenv==1.0.1
|
4 |
-
sumy==0.11.0
|
5 |
-
nltk==3.9.1
|
|
|
1 |
openai==1.57.3
|
2 |
gradio==5.8.0
|
3 |
python-dotenv==1.0.1
|
|
|
|