Spaces:
Sleeping
Sleeping
Sean-Case
commited on
Commit
·
8ba34be
1
Parent(s):
745a159
set gradio version to 4.18.0, before root path issue reappears
Browse files- app.py +2 -2
- requirements.txt +1 -1
app.py
CHANGED
@@ -20,7 +20,7 @@ temp_folder_path = get_temp_folder_path()
|
|
20 |
empty_folder(temp_folder_path)
|
21 |
|
22 |
## Gradio app - BM25 search
|
23 |
-
block = gr.Blocks(theme = gr.themes.Base())
|
24 |
|
25 |
|
26 |
with block:
|
@@ -197,7 +197,7 @@ depends on factors such as the type of documents or queries. Information taken f
|
|
197 |
#block.queue().launch(debug=True)
|
198 |
|
199 |
# Running on local server without specifying port
|
200 |
-
block.queue().launch(server_name="0.0.0.0"
|
201 |
|
202 |
#app = gr.mount_gradio_app(app, block, path="/data_text_search")
|
203 |
|
|
|
20 |
empty_folder(temp_folder_path)
|
21 |
|
22 |
## Gradio app - BM25 search
|
23 |
+
block = gr.Blocks(theme = gr.themes.Base()) # , css="theme.css"
|
24 |
|
25 |
|
26 |
with block:
|
|
|
197 |
#block.queue().launch(debug=True)
|
198 |
|
199 |
# Running on local server without specifying port
|
200 |
+
block.queue().launch(server_name="0.0.0.0", root_path="/data-text-search") #
|
201 |
|
202 |
#app = gr.mount_gradio_app(app, block, path="/data_text_search")
|
203 |
|
requirements.txt
CHANGED
@@ -7,6 +7,6 @@ openpyxl==3.1.2
|
|
7 |
torch==2.1.2
|
8 |
spacy==3.7.2
|
9 |
en_core_web_sm @ https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.7.1/en_core_web_sm-3.7.1.tar.gz
|
10 |
-
gradio==
|
11 |
sentence_transformers==2.3.1
|
12 |
lxml==5.1.0
|
|
|
7 |
torch==2.1.2
|
8 |
spacy==3.7.2
|
9 |
en_core_web_sm @ https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.7.1/en_core_web_sm-3.7.1.tar.gz
|
10 |
+
gradio==3.50.2
|
11 |
sentence_transformers==2.3.1
|
12 |
lxml==5.1.0
|