File size: 2,293 Bytes
d25c961 022938f d25c961 afe0567 1620e84 afe0567 d25c961 4bc2ea4 a5319dc d25c961 afe0567 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
import pandas as pd
import numpy as np
import gradio as gr
data = pd.read_excel("minimal_reproducer.xlsx")
df=pd.DataFrame(data)
with gr.Blocks() as demo:
with gr.Row():
with gr.Column(scale=1):
with gr.Row():
gr.Button(value="Filler",interactive=False)
with gr.Row():
gr.Button(value="Filler",interactive=False)
with gr.Row():
gr.Button(value="Filler",interactive=False)
with gr.Row():
gr.Button(value="Filler",interactive=False)
with gr.Row():
gr.Button(value="Filler",interactive=False)
with gr.Row():
gr.Button(value="Filler",interactive=False)
with gr.Row():
gr.Button(value="Filler",interactive=False)
with gr.Row():
gr.Button(value="Filler",interactive=False)
with gr.Row():
gr.Button(value="Filler",interactive=False)
with gr.Row():
gr.Button(value="Filler",interactive=False)
with gr.Row():
gr.Button(value="Filler",interactive=False)
with gr.Row():
gr.Button(value="Filler",interactive=False)
with gr.Row():
gr.Button(value="Filler",interactive=False)
with gr.Row():
gr.Button(value="Filler",interactive=False)
with gr.Row():
gr.Button(value="Filler",interactive=False)
with gr.Row():
gr.Button(value="Filler",interactive=False)
with gr.Row():
gr.Button(value="Filler",interactive=False)
with gr.Row():
gr.Button(value="Filler",interactive=False)
with gr.Row():
gr.Button(value="Filler",interactive=False)
with gr.Row():
gr.Button(value="Filler",interactive=False)
with gr.Row():
gr.Button(value="Filler",interactive=False)
with gr.Row():
gr.Button(value="Filler",interactive=False)
with gr.Row():
gr.Button(value="Filler",interactive=False)
with gr.Column(scale=3, variant="compact"):
example_df=gr.Dataframe(value=df,type="pandas", visible=True, interactive=False, height=4000)
demo.launch(debug=True)
|