CognitiveScience commited on
Commit
741cfba
·
1 Parent(s): 388bced

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -7
app.py CHANGED
@@ -123,18 +123,32 @@ css="footer {visibility: hidden}"
123
  # Applying style to highlight the maximum value in each row
124
  #styler = df.style.highlight_max(color = 'lightgreen', axis = 0)
125
  with gr.Blocks(css=css) as demo:
126
-
127
  with gr.Row():
128
  with gr.Column():
129
  data = gr.Dataframe() #styler)
130
  count = gr.Number(label="Rates!")
131
  with gr.Row():
132
- with gr.Column():
133
-
134
- styler = df.style.highlight_max(color = 'lightgreen', axis = 0)
135
- run_ecs("Dan")
136
- data = gr.Dataframe() #styler)
137
- count = gr.Number(label="Rates!")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
138
  with gr.Row():
139
  with gr.Column():
140
  name = gr.Textbox(label="a") #, placeholder="What is your name?")
 
123
  # Applying style to highlight the maximum value in each row
124
  #styler = df.style.highlight_max(color = 'lightgreen', axis = 0)
125
  with gr.Blocks(css=css) as demo:
 
126
  with gr.Row():
127
  with gr.Column():
128
  data = gr.Dataframe() #styler)
129
  count = gr.Number(label="Rates!")
130
  with gr.Row():
131
+ with gr.Column():
132
+
133
+ # Creating a sample dataframe
134
+ df = pd.DataFrame({
135
+ "A" : [14, 4, 5, 4, 1],
136
+ "B" : [5, 2, 54, 3, 2],
137
+ "C" : [20, 20, 7, 3, 8],
138
+ "D" : [14, 3, 6, 2, 6],
139
+ "E" : [23, 45, 64, 32, 23]
140
+ })
141
+
142
+ # Applying style to highlight the maximum value in each row
143
+ styler = df.style.highlight_max(color = 'lightgreen', axis = 0)
144
+
145
+
146
+ #df1=run_ecs("Dan")
147
+
148
+
149
+ #df1=json.loads(js1)
150
+ data = gr.Dataframe(styler)
151
+ #count = gr.Number(label="Rates!")
152
  with gr.Row():
153
  with gr.Column():
154
  name = gr.Textbox(label="a") #, placeholder="What is your name?")