seonglae-holistic commited on
Commit
50c2dfa
·
1 Parent(s): 1743f11

fix: remove language from the input

Browse files
Files changed (2) hide show
  1. app.py +0 -10
  2. src/submission/submit.py +0 -3
app.py CHANGED
@@ -231,22 +231,12 @@ with demo:
231
  with gr.Column():
232
  library_name_textbox = gr.Textbox(label="Library name")
233
 
234
- with gr.Column():
235
- language = gr.Dropdown(
236
- choices=[i.value.name for i in Language if i != Language.Other],
237
- label="Programming Language",
238
- multiselect=True,
239
- value=["Python"],
240
- interactive=True,
241
- )
242
-
243
  submit_button = gr.Button("Submit for Assessment")
244
  submission_result = gr.Markdown()
245
  submit_button.click(
246
  add_new_eval,
247
  [
248
  library_name_textbox,
249
- language,
250
  ],
251
  submission_result,
252
  )
 
231
  with gr.Column():
232
  library_name_textbox = gr.Textbox(label="Library name")
233
 
 
 
 
 
 
 
 
 
 
234
  submit_button = gr.Button("Submit for Assessment")
235
  submission_result = gr.Markdown()
236
  submit_button.click(
237
  add_new_eval,
238
  [
239
  library_name_textbox,
 
240
  ],
241
  submission_result,
242
  )
src/submission/submit.py CHANGED
@@ -11,14 +11,12 @@ from src.submission.check_validity import is_repository_valid
11
 
12
  def add_new_eval(
13
  library_name,
14
- language,
15
  ) -> str:
16
  """
17
  Adds a new library to the assessment queue.
18
 
19
  Args:
20
  library_name: Name of the library
21
- language: Programming language
22
 
23
  Returns:
24
  A message indicating the status of the submission
@@ -41,7 +39,6 @@ def add_new_eval(
41
  # Create the assessment request JSON
42
  assessment_request = {
43
  "library": library_name,
44
- "language": "/".join(language) if isinstance(language, list) else language,
45
  "license": license_name,
46
  "stars": stars,
47
  "status": "PENDING",
 
11
 
12
  def add_new_eval(
13
  library_name,
 
14
  ) -> str:
15
  """
16
  Adds a new library to the assessment queue.
17
 
18
  Args:
19
  library_name: Name of the library
 
20
 
21
  Returns:
22
  A message indicating the status of the submission
 
39
  # Create the assessment request JSON
40
  assessment_request = {
41
  "library": library_name,
 
42
  "license": license_name,
43
  "stars": stars,
44
  "status": "PENDING",