broadfield-dev commited on
Commit
4c05c26
·
verified ·
1 Parent(s): 97dea01

Update server.py

Browse files
Files changed (1) hide show
  1. server.py +2 -1
server.py CHANGED
@@ -262,7 +262,8 @@ with gr.Blocks(theme=gr.themes.Soft(), title="Social App") as demo:
262
 
263
  with gr.TabItem("Manual Actions & Settings"):
264
  manual_action_status = gr.Textbox(label="Action Status", interactive=False)
265
- with gr.Row():
 
266
  with gr.Group():
267
  gr.Markdown("### Manually Create Post")
268
  post_user = gr.Textbox(label="Username", value="admin")
 
262
 
263
  with gr.TabItem("Manual Actions & Settings"):
264
  manual_action_status = gr.Textbox(label="Action Status", interactive=False)
265
+ gr.Markdown("## DEMO_MODE", visible=True if DEMO_MODE else False)
266
+ with gr.Row(bisible=False if DEMO_MODE else True):
267
  with gr.Group():
268
  gr.Markdown("### Manually Create Post")
269
  post_user = gr.Textbox(label="Username", value="admin")