my-space / app.py
Saivivek25's picture
Update app.py
c1239e3 verified
raw
history blame
425 Bytes
import gradio as gr
import pandas as pd
# Dataset load cheyyadam (public dataset link or local file inside repo)
data = pd.read_csv("s1.txt.pdf")
def show_head(rows):
return data.head(rows).to_string()
iface = gr.Interface(
fn=show_head,
inputs=gr.Slider(1, 10, step=1, label="How many rows?"),
outputs="text",
title="CSV Viewer",
description="Display rows from uploaded dataset"
)
iface.launch()