mimic / app.py
raoufjat's picture
Update app.py
f6734bb verified
raw
history blame
331 Bytes
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()