Spaces:
Runtime error
Runtime error
File size: 392 Bytes
c6fd2a1 289b415 c6fd2a1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import gradio as gr
from datasets import load_dataset
# Load dataset
dataset = load_dataset("Sebasdi/ARC_50_full")
# Define a function to display dataset rows
def show_example(index):
example = dataset[index]
return example
# Create a Gradio interface
interface = gr.Interface(fn=show_example, inputs="slider", outputs="json", live=True)
# Launch the interface
interface.launch()
|