import gradio as gr | |
from datasets import load_dataset | |
# Load the dataset | |
dataset = load_dataset("MohamedRashad/arabic-books") | |
def display_info(): | |
# Example output from the dataset | |
return str(dataset) | |
# Gradio UI | |
interface = gr.Interface( | |
fn=display_info, | |
inputs=[], | |
outputs="text", | |
) | |
interface.launch() | |