tohid.abedini commited on
Commit
1007cc7
·
1 Parent(s): da3eb1c
Files changed (2) hide show
  1. app.py +1 -2
  2. utils.py +2 -3
app.py CHANGED
@@ -54,11 +54,10 @@ with gr.Blocks(css=custom_css) as demo:
54
  model_name = gr.Textbox(label="Model name")
55
  model_id = gr.Textbox(label="username/space e.g PartAI/Dorna-Llama3-8B-Instruct")
56
  contact_email = gr.Textbox(label="Contact E-Mail")
57
- section = gr.Radio(choices=["Persian", "Base"], label="Section")
58
  license = gr.Dropdown(choices=["llama2", "llama3", "llama3.1", "llama3.2", "cc-by-nc-4.0", "mit", "apache-2.0", "gemma", "cc-by-nc-sa-4.0", "other"], label="License")
59
  submit_btn = gr.Button("Submit")
60
 
61
- submit_btn.click(submit, inputs=[model_name, model_id, contact_email, section, license], outputs=[])
62
 
63
  gr.Markdown("""
64
  Please find more information about Part DP AI on [partdp.ai](https://partdp.ai)""")
 
54
  model_name = gr.Textbox(label="Model name")
55
  model_id = gr.Textbox(label="username/space e.g PartAI/Dorna-Llama3-8B-Instruct")
56
  contact_email = gr.Textbox(label="Contact E-Mail")
 
57
  license = gr.Dropdown(choices=["llama2", "llama3", "llama3.1", "llama3.2", "cc-by-nc-4.0", "mit", "apache-2.0", "gemma", "cc-by-nc-sa-4.0", "other"], label="License")
58
  submit_btn = gr.Button("Submit")
59
 
60
+ submit_btn.click(submit, inputs=[model_name, model_id, contact_email, license], outputs=[])
61
 
62
  gr.Markdown("""
63
  Please find more information about Part DP AI on [partdp.ai](https://partdp.ai)""")
utils.py CHANGED
@@ -225,8 +225,8 @@ def apply_markdown_format_for_columns(df, model_column_name):
225
  return df
226
 
227
 
228
- def submit(model_name, model_id, contact_email, section, license):
229
- if model_name == "" or model_id == "" or section == "" or license == "" or contact_email == "":
230
  gr.Info("Please fill all the fields")
231
  return
232
 
@@ -240,7 +240,6 @@ def submit(model_name, model_id, contact_email, section, license):
240
  eval_entry = {
241
  "model_name": model_name,
242
  "model_id": model_id,
243
- "section": section,
244
  "contact_email": contact_email,
245
  "license": license
246
  }
 
225
  return df
226
 
227
 
228
+ def submit(model_name, model_id, contact_email, license):
229
+ if model_name == "" or model_id == "" or license == "" or contact_email == "":
230
  gr.Info("Please fill all the fields")
231
  return
232
 
 
240
  eval_entry = {
241
  "model_name": model_name,
242
  "model_id": model_id,
 
243
  "contact_email": contact_email,
244
  "license": license
245
  }