Update app.py
Browse files
app.py
CHANGED
@@ -66,7 +66,7 @@ def fx_dt(dc,x,y):
|
|
66 |
D_table=DT[:,sum(f[int(y-1)]),by(f[int(x-1)])]
|
67 |
return D_table.to_pandas()
|
68 |
|
69 |
-
demo=gr.Blocks()
|
70 |
with demo:
|
71 |
with gr.Tabs():
|
72 |
with gr.TabItem("测试1"):
|
@@ -124,7 +124,7 @@ with demo:
|
|
124 |
dt_button=gr.Button("分类汇总")
|
125 |
dt_button.click(fx_dt, inputs=dt_input, outputs=dt_output,api_name='datatable')
|
126 |
|
127 |
-
with gr.TabItem("js"):
|
128 |
gr.Markdown("# js处理测试")
|
129 |
a=gr.Textbox(label='请输入需要js逆序处理的字符串')
|
130 |
js_output=gr.Textbox(label="JS输出")
|
|
|
66 |
D_table=DT[:,sum(f[int(y-1)]),by(f[int(x-1)])]
|
67 |
return D_table.to_pandas()
|
68 |
|
69 |
+
demo=gr.Blocks(css="#jsc {color: red}")
|
70 |
with demo:
|
71 |
with gr.Tabs():
|
72 |
with gr.TabItem("测试1"):
|
|
|
124 |
dt_button=gr.Button("分类汇总")
|
125 |
dt_button.click(fx_dt, inputs=dt_input, outputs=dt_output,api_name='datatable')
|
126 |
|
127 |
+
with gr.TabItem("js",elem_id="jsc"):
|
128 |
gr.Markdown("# js处理测试")
|
129 |
a=gr.Textbox(label='请输入需要js逆序处理的字符串')
|
130 |
js_output=gr.Textbox(label="JS输出")
|