Spaces:
Running
Running
jeffrey
commited on
Commit
·
5923c02
1
Parent(s):
55755d8
Change to Download Button
Browse files
app.py
CHANGED
@@ -166,8 +166,8 @@ with gr.Blocks(theme="earneleh/paris") as demo:
|
|
166 |
label="Parsing Method", info="Choose parsing method that you want")
|
167 |
parse_button = gr.Button(value="Run Parsing")
|
168 |
parse_status = gr.Textbox(value="Not Started", interactive=False)
|
169 |
-
raw_download_button = gr.
|
170 |
-
|
171 |
file_reset_button = gr.Button(value="Reset uploaded files")
|
172 |
|
173 |
with gr.Column(scale=1):
|
@@ -184,8 +184,8 @@ with gr.Blocks(theme="earneleh/paris") as demo:
|
|
184 |
chunk_overlap = gr.Slider(minimum=16, maximum=256, step=16, label="Chunk Overlap", value=32)
|
185 |
chunk_button = gr.Button(value="Run Chunking")
|
186 |
chunk_status = gr.Textbox(value="Not Started", interactive=False)
|
187 |
-
corpus_download_button = gr.
|
188 |
-
|
189 |
|
190 |
with gr.Column(scale=1):
|
191 |
gr.Markdown(
|
@@ -204,8 +204,8 @@ with gr.Blocks(theme="earneleh/paris") as demo:
|
|
204 |
label="Batch Size to OpenAI model. If there is an error, decrease this.", value=16)
|
205 |
run_qa_button = gr.Button(value="Run QA Creation")
|
206 |
qa_status = gr.Textbox(value="Not Started", interactive=False)
|
207 |
-
qa_download_button = gr.
|
208 |
-
|
209 |
|
210 |
#================================================================================================#
|
211 |
# Logics
|
|
|
166 |
label="Parsing Method", info="Choose parsing method that you want")
|
167 |
parse_button = gr.Button(value="Run Parsing")
|
168 |
parse_status = gr.Textbox(value="Not Started", interactive=False)
|
169 |
+
raw_download_button = gr.DownloadButton(value=os.path.join(DATA_DIR, 'raw.parquet'),
|
170 |
+
label="Download raw.parquet")
|
171 |
file_reset_button = gr.Button(value="Reset uploaded files")
|
172 |
|
173 |
with gr.Column(scale=1):
|
|
|
184 |
chunk_overlap = gr.Slider(minimum=16, maximum=256, step=16, label="Chunk Overlap", value=32)
|
185 |
chunk_button = gr.Button(value="Run Chunking")
|
186 |
chunk_status = gr.Textbox(value="Not Started", interactive=False)
|
187 |
+
corpus_download_button = gr.DownloadButton(label="Download corpus.parquet",
|
188 |
+
value=os.path.join(DATA_DIR, 'corpus.parquet'))
|
189 |
|
190 |
with gr.Column(scale=1):
|
191 |
gr.Markdown(
|
|
|
204 |
label="Batch Size to OpenAI model. If there is an error, decrease this.", value=16)
|
205 |
run_qa_button = gr.Button(value="Run QA Creation")
|
206 |
qa_status = gr.Textbox(value="Not Started", interactive=False)
|
207 |
+
qa_download_button = gr.DownloadButton(label="Download qa.parquet",
|
208 |
+
value=os.path.join(DATA_DIR, 'qa.parquet'))
|
209 |
|
210 |
#================================================================================================#
|
211 |
# Logics
|