Update app.py
Browse files
app.py
CHANGED
@@ -50,6 +50,10 @@ def fx_datatable(code:str):
|
|
50 |
fun = compile(code,'<string>','exec')
|
51 |
exec(fun,namespace)
|
52 |
return namespace['py_exe']
|
|
|
|
|
|
|
|
|
53 |
'''
|
54 |
def fx_dd(tk:str,s:str):
|
55 |
headers= {"Content-Type": "application/json"}
|
@@ -153,5 +157,9 @@ py_exe=d_t.to_pandas()'''
|
|
153 |
gr.Markdown("# 画册展示_khc")
|
154 |
S='<iframe style="height: 600px; width: 100%;" src="https://app.kuhuace.com/player/index.html?id=60" allowfullscreen="allowfullscreen"><iframe>'
|
155 |
gr.HTML(S)
|
|
|
|
|
|
|
|
|
156 |
|
157 |
demo.launch()
|
|
|
50 |
fun = compile(code,'<string>','exec')
|
51 |
exec(fun,namespace)
|
52 |
return namespace['py_exe']
|
53 |
+
|
54 |
+
def xz():
|
55 |
+
x=pd.DataFrame([{'姓名':'畅心','成绩':100}])
|
56 |
+
x.to_excel('statics/test.xlsx',index=False)
|
57 |
'''
|
58 |
def fx_dd(tk:str,s:str):
|
59 |
headers= {"Content-Type": "application/json"}
|
|
|
157 |
gr.Markdown("# 画册展示_khc")
|
158 |
S='<iframe style="height: 600px; width: 100%;" src="https://app.kuhuace.com/player/index.html?id=60" allowfullscreen="allowfullscreen"><iframe>'
|
159 |
gr.HTML(S)
|
160 |
+
with gr.TabItem("下载测试"):
|
161 |
+
with gr.Row():
|
162 |
+
xz_button=gr.Button("初始化>>")
|
163 |
+
xz_button.click(xz,[], "file",api_name='xz')
|
164 |
|
165 |
demo.launch()
|