Elfsong commited on
Commit
f834d8e
·
1 Parent(s): c566e8a
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -115,6 +115,7 @@ with tab4:
115
  }]
116
  predefined_code = "def generate_test_cases():\n\tpass\n\ndef serialize_input():\n\tpass\n\ndef deserialize_input():\n\tpass\n\ndef serialize_output():\n\tpass\n\ndef deserialize_output():\n\tpass"
117
  response_dict = code_editor(predefined_code, lang="python", height=20, options={"wrap": False}, buttons=editor_buttons)
 
118
  if response_dict['type'] == 'submit':
119
  new_ds = Dataset.from_list([{
120
  "question_id": example['question_id'],
@@ -124,5 +125,6 @@ with tab4:
124
  ds_name = str(uuid.uuid1())
125
  qid = example['question_id']
126
  new_ds.push_to_hub(f"Elfsong/Venus_Anotation", f'python3-{qid}-{ds_name}')
 
127
  st.write("Thanks for your contribution! 🌟")
128
 
 
115
  }]
116
  predefined_code = "def generate_test_cases():\n\tpass\n\ndef serialize_input():\n\tpass\n\ndef deserialize_input():\n\tpass\n\ndef serialize_output():\n\tpass\n\ndef deserialize_output():\n\tpass"
117
  response_dict = code_editor(predefined_code, lang="python", height=20, options={"wrap": False}, buttons=editor_buttons)
118
+ st.write("Click 'Submit' bottom right to upload your functions.")
119
  if response_dict['type'] == 'submit':
120
  new_ds = Dataset.from_list([{
121
  "question_id": example['question_id'],
 
125
  ds_name = str(uuid.uuid1())
126
  qid = example['question_id']
127
  new_ds.push_to_hub(f"Elfsong/Venus_Anotation", f'python3-{qid}-{ds_name}')
128
+ st.divider()
129
  st.write("Thanks for your contribution! 🌟")
130