Spaces:
No application file
No application file
| 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() | |