Update app.py
Browse files
app.py
CHANGED
|
@@ -112,8 +112,8 @@ with demo:
|
|
| 112 |
with gr.TabItem("M-Formatter"):
|
| 113 |
gr.Markdown("# PowerQuery M语言脚本格式化测试")
|
| 114 |
M_input=gr.Textbox(label="请填写需要格式化的M脚本",lines=18)
|
| 115 |
-
M_output=gr.Textbox(label="格式化结果",lines=50)
|
| 116 |
M_button=gr.Button("开始格式化>>")
|
|
|
|
| 117 |
M_button.click(fx_m, inputs=M_input, outputs=M_output,api_name='M')
|
| 118 |
|
| 119 |
with gr.TabItem("DAX-Formatter"):
|
|
@@ -130,9 +130,9 @@ with demo:
|
|
| 130 |
DT=fread('https://huggingface.co/spaces/changxin/test/raw/main/statics/test.csv')
|
| 131 |
d_t=DT[:,sum(f.销量),by('小组')]
|
| 132 |
py_exe=d_t.to_pandas()'''
|
| 133 |
-
d_input=gr.Textbox(label="请填写需要datatable库处理的脚本(最终输出使用变量名py_exe)",lines=18,
|
| 134 |
-
d_output=gr.DataFrame(label="输出>")
|
| 135 |
d_button=gr.Button("开始编译>>")
|
|
|
|
| 136 |
d_button.click(fx_datatable, inputs=d_input, outputs=d_output,api_name='pyexe')
|
| 137 |
|
| 138 |
with gr.TabItem("js"):
|
|
|
|
| 112 |
with gr.TabItem("M-Formatter"):
|
| 113 |
gr.Markdown("# PowerQuery M语言脚本格式化测试")
|
| 114 |
M_input=gr.Textbox(label="请填写需要格式化的M脚本",lines=18)
|
|
|
|
| 115 |
M_button=gr.Button("开始格式化>>")
|
| 116 |
+
M_output=gr.Textbox(label="格式化结果",lines=50)
|
| 117 |
M_button.click(fx_m, inputs=M_input, outputs=M_output,api_name='M')
|
| 118 |
|
| 119 |
with gr.TabItem("DAX-Formatter"):
|
|
|
|
| 130 |
DT=fread('https://huggingface.co/spaces/changxin/test/raw/main/statics/test.csv')
|
| 131 |
d_t=DT[:,sum(f.销量),by('小组')]
|
| 132 |
py_exe=d_t.to_pandas()'''
|
| 133 |
+
d_input=gr.Textbox(label="请填写需要datatable库处理的脚本(最终输出使用变量名py_exe)",lines=18,value=test_code)
|
|
|
|
| 134 |
d_button=gr.Button("开始编译>>")
|
| 135 |
+
d_output=gr.DataFrame(label="输出>")
|
| 136 |
d_button.click(fx_datatable, inputs=d_input, outputs=d_output,api_name='pyexe')
|
| 137 |
|
| 138 |
with gr.TabItem("js"):
|