lmy0802 commited on
Commit
ee077b5
·
verified ·
1 Parent(s): 0525afc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -15
app.py CHANGED
@@ -325,21 +325,21 @@ with gr.Blocks() as iface:
325
  select_radio.change(fn=plot_csv, inputs=[dataset_radio, select_radio, num_parts_dropdown],
326
  outputs=gr.Plot(label="Line Plot "))
327
 
328
- with gr.TabItem("Upload Inference File"):
329
- gr.Markdown("Upload a JSON file")
330
- with gr.Row():
331
- with gr.Column():
332
- string_input = gr.Textbox(label="Enter the Model Name")
333
- number_input = gr.Number(label="Select the Number of Samples")
334
- dataset_choice = gr.Dropdown(label="Select Dataset", choices=["HumanEval", "MBPP"])
335
- with gr.Column():
336
- file_input = gr.File(label="Upload Generation Result in JSON file")
337
- upload_button = gr.Button("Confirm and Upload")
338
-
339
- json_output = gr.JSON(label="")
340
-
341
- upload_button.click(fn=generate_file, inputs=[file_input, string_input, number_input, dataset_choice],
342
- outputs=json_output)
343
 
344
  css = """
345
  #scale1 {
 
325
  select_radio.change(fn=plot_csv, inputs=[dataset_radio, select_radio, num_parts_dropdown],
326
  outputs=gr.Plot(label="Line Plot "))
327
 
328
+ # with gr.TabItem("Upload Inference File"):
329
+ # gr.Markdown("Upload a JSON file")
330
+ # with gr.Row():
331
+ # with gr.Column():
332
+ # string_input = gr.Textbox(label="Enter the Model Name")
333
+ # number_input = gr.Number(label="Select the Number of Samples")
334
+ # dataset_choice = gr.Dropdown(label="Select Dataset", choices=["HumanEval", "MBPP"])
335
+ # with gr.Column():
336
+ # file_input = gr.File(label="Upload Generation Result in JSON file")
337
+ # upload_button = gr.Button("Confirm and Upload")
338
+
339
+ # json_output = gr.JSON(label="")
340
+
341
+ # upload_button.click(fn=generate_file, inputs=[file_input, string_input, number_input, dataset_choice],
342
+ # outputs=json_output)
343
 
344
  css = """
345
  #scale1 {