abidlabs HF Staff commited on
Commit
c5e539b
·
verified ·
1 Parent(s): 3d6f4f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -6
app.py CHANGED
@@ -1,12 +1,20 @@
1
- import time
2
  import gradio as gr
3
 
4
- def slow_echo(message, history):
5
- for i in range(len(message)):
6
- time.sleep(0.05)
7
- yield "You typed: " + message[: i + 1]
 
 
 
 
 
8
 
9
- demo = gr.ChatInterface(slow_echo, type="messages", title="ABC")
 
 
 
10
 
11
  if __name__ == "__main__":
12
  demo.launch()
 
1
+ import pandas as pd
2
  import gradio as gr
3
 
4
+ df = pd.DataFrame(
5
+ {
6
+ "A": [14, 4, 5, 4, 1],
7
+ "B": [5, 2, 54, 3, 2],
8
+ "C": [20, 20, 7, 3, 8],
9
+ "D": [14, 3, 6, 2, 6],
10
+ "E": [23, 45, 64, 32, 23],
11
+ }
12
+ )
13
 
14
+ t = df.style.highlight_max(color="lightgreen", axis=0)
15
+
16
+ with gr.Blocks() as demo:
17
+ gr.Dataframe(t)
18
 
19
  if __name__ == "__main__":
20
  demo.launch()