Spaces:
Sleeping
Sleeping
WillSH97
commited on
:memo: changed wording on buttons
Browse files
probable_facts_examples_gradio.py
CHANGED
|
@@ -289,17 +289,17 @@ with gr.Blocks() as demo:
|
|
| 289 |
gr.Markdown(f"*Examples are saved to HuggingFace dataset: [{DATASET_REPO}](https://huggingface.co/datasets/{DATASET_REPO})*")
|
| 290 |
|
| 291 |
with gr.Row():
|
| 292 |
-
probable_fact_input = gr.Textbox(info="Input your probable
|
| 293 |
-
hard_fact_input = gr.Textbox(info="Input your
|
| 294 |
|
| 295 |
with gr.Row():
|
| 296 |
-
probable_btn = gr.Button("Save Probable
|
| 297 |
-
hard_btn = gr.Button("Save
|
| 298 |
|
| 299 |
with gr.Row():
|
| 300 |
-
with gr.Accordion("Previous Probable
|
| 301 |
probable_list = gr.Dataframe(interactive=False)
|
| 302 |
-
with gr.Accordion("Previous
|
| 303 |
hard_list = gr.Dataframe(interactive=False)
|
| 304 |
|
| 305 |
# Set up event handlers
|
|
@@ -325,4 +325,4 @@ with gr.Blocks() as demo:
|
|
| 325 |
if __name__ == "__main__":
|
| 326 |
# Create initial dataset from local files if needed
|
| 327 |
create_initial_dataset()
|
| 328 |
-
demo.launch()
|
|
|
|
| 289 |
gr.Markdown(f"*Examples are saved to HuggingFace dataset: [{DATASET_REPO}](https://huggingface.co/datasets/{DATASET_REPO})*")
|
| 290 |
|
| 291 |
with gr.Row():
|
| 292 |
+
probable_fact_input = gr.Textbox(info="Input your probable knowledge example here!", label="Probable Knowledge")
|
| 293 |
+
hard_fact_input = gr.Textbox(info="Input your example of other knowledge systems here!", label="Other Knowledge Systems")
|
| 294 |
|
| 295 |
with gr.Row():
|
| 296 |
+
probable_btn = gr.Button("Save Probable Knowledge Example")
|
| 297 |
+
hard_btn = gr.Button("Save Other Knowledge System Example")
|
| 298 |
|
| 299 |
with gr.Row():
|
| 300 |
+
with gr.Accordion("Previous Probable Knowledge Examples", open=True):
|
| 301 |
probable_list = gr.Dataframe(interactive=False)
|
| 302 |
+
with gr.Accordion("Previous Examples of Other Knowledge Systems", open=True): # Fixed label
|
| 303 |
hard_list = gr.Dataframe(interactive=False)
|
| 304 |
|
| 305 |
# Set up event handlers
|
|
|
|
| 325 |
if __name__ == "__main__":
|
| 326 |
# Create initial dataset from local files if needed
|
| 327 |
create_initial_dataset()
|
| 328 |
+
demo.launch()
|