WillSH97 commited on
Commit
e1ee863
·
unverified ·
1 Parent(s): 1d943d8

:memo: changed wording on buttons

Browse files
Files changed (1) hide show
  1. probable_facts_examples_gradio.py +7 -7
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 fact example here!", label="Probable Fact")
293
- hard_fact_input = gr.Textbox(info="Input your hard fact example here!", label="Hard Fact")
294
 
295
  with gr.Row():
296
- probable_btn = gr.Button("Save Probable Fact Example")
297
- hard_btn = gr.Button("Save Hard Fact Example")
298
 
299
  with gr.Row():
300
- with gr.Accordion("Previous Probable Facts Examples", open=True):
301
  probable_list = gr.Dataframe(interactive=False)
302
- with gr.Accordion("Previous Hard Facts Examples", open=True): # Fixed label
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()