Spaces:
Runtime error
Runtime error
update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ dataset = load_dataset("princeton-nlp/SWE-bench")
|
|
6 |
|
7 |
# Define a function to display a sample from the dataset
|
8 |
|
9 |
-
def get_result(id,name):
|
10 |
if name == "":
|
11 |
return get_sample(id)
|
12 |
return get_sample_filter(name)
|
@@ -45,7 +45,7 @@ input_box=gr.Textbox(lines=1, placeholder="Enter sample ID (integer)")
|
|
45 |
iface = gr.Interface(
|
46 |
fn=get_result,
|
47 |
#inputs=gr.Textbox(lines=1, placeholder="Enter sample ID (integer)"),
|
48 |
-
inputs=[slider,input_box],
|
49 |
outputs=gr.JSON(),
|
50 |
title="SWE-bench Dataset Viewer",
|
51 |
description="Enter a sample ID to view the corresponding data from the SWE-bench dataset."
|
|
|
6 |
|
7 |
# Define a function to display a sample from the dataset
|
8 |
|
9 |
+
def get_result(id,name,mk):
|
10 |
if name == "":
|
11 |
return get_sample(id)
|
12 |
return get_sample_filter(name)
|
|
|
45 |
iface = gr.Interface(
|
46 |
fn=get_result,
|
47 |
#inputs=gr.Textbox(lines=1, placeholder="Enter sample ID (integer)"),
|
48 |
+
inputs=[slider,input_box,block],
|
49 |
outputs=gr.JSON(),
|
50 |
title="SWE-bench Dataset Viewer",
|
51 |
description="Enter a sample ID to view the corresponding data from the SWE-bench dataset."
|