hysts HF Staff commited on
Commit
3ba364c
·
1 Parent(s): 1ea4877
Files changed (2) hide show
  1. README.md +3 -2
  2. app.py +10 -1
README.md CHANGED
@@ -1,5 +1,6 @@
1
  ---
2
- title: Base Space
 
3
  emoji: ⚡
4
  colorFrom: red
5
  colorTo: purple
@@ -7,8 +8,8 @@ sdk: gradio
7
  sdk_version: 3.43.2
8
  python_version: 3.10.12
9
  app_file: app.py
10
- license: mit
11
  duplicated_from: hysts-debug/base-space
 
12
  ---
13
 
14
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ license: mit
3
+ title: dataframe-max-rows
4
  emoji: ⚡
5
  colorFrom: red
6
  colorTo: purple
 
8
  sdk_version: 3.43.2
9
  python_version: 3.10.12
10
  app_file: app.py
 
11
  duplicated_from: hysts-debug/base-space
12
+ pinned: false
13
  ---
14
 
15
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
app.py CHANGED
@@ -1,7 +1,16 @@
1
  #!/usr/bin/env python
2
 
3
  import gradio as gr
 
 
 
4
 
5
  with gr.Blocks() as demo:
6
- pass
 
 
 
 
 
 
7
  demo.queue().launch()
 
1
  #!/usr/bin/env python
2
 
3
  import gradio as gr
4
+ import pandas as pd
5
+
6
+ df = pd.DataFrame({"a": list(range(100)), "b": ["aaa"] * 100})
7
 
8
  with gr.Blocks() as demo:
9
+ gr.Dataframe(
10
+ value=df,
11
+ datatype=["number", "str"],
12
+ type="pandas",
13
+ interactive=False,
14
+ max_rows=None,
15
+ )
16
  demo.queue().launch()