Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -162,7 +162,7 @@ with gr.Blocks() as demo:
|
|
162 |
gr.Markdown("```python\nnew_df.to_excel(YOUR_NEW_FILE)\nreturn YOUR_NEW_FILE\n```")
|
163 |
|
164 |
btn_run_code = gr.Button()
|
165 |
-
error_display = gr.
|
166 |
df_output_code = gr.DataFrame(interactive=False)
|
167 |
btn_export_df = gr.Button('Export df as excel')
|
168 |
st_filename = gr.State()
|
@@ -193,7 +193,7 @@ with gr.Blocks() as demo:
|
|
193 |
|
194 |
|
195 |
|
196 |
-
btn_run_code.click(
|
197 |
btn_export_df.click(export_df, inputs=[df_output_code, st_filename], outputs=fi_excel)
|
198 |
|
199 |
|
|
|
162 |
gr.Markdown("```python\nnew_df.to_excel(YOUR_NEW_FILE)\nreturn YOUR_NEW_FILE\n```")
|
163 |
|
164 |
btn_run_code = gr.Button()
|
165 |
+
error_display = gr.Markdown(container=False)
|
166 |
df_output_code = gr.DataFrame(interactive=False)
|
167 |
btn_export_df = gr.Button('Export df as excel')
|
168 |
st_filename = gr.State()
|
|
|
193 |
|
194 |
|
195 |
|
196 |
+
btn_run_code.click(run_code, inputs=[fi_excel, cd_code], outputs=[df_output_code, error_display])
|
197 |
btn_export_df.click(export_df, inputs=[df_output_code, st_filename], outputs=fi_excel)
|
198 |
|
199 |
|