admin commited on
Commit
f2e0a8c
·
1 Parent(s): 2fbc1c8

, show_copy_button=True),

Browse files
Files changed (1) hide show
  1. app.py +9 -6
app.py CHANGED
@@ -51,7 +51,10 @@ if __name__ == "__main__":
51
  gr.Interface(
52
  fn=tasklst,
53
  inputs=None,
54
- outputs=gr.TextArea(label="Current task details"),
 
 
 
55
  flagging_mode="never",
56
  )
57
 
@@ -59,17 +62,17 @@ if __name__ == "__main__":
59
  gr.Interface(
60
  fn=trigger,
61
  inputs=None,
62
- outputs=gr.TextArea(label="Activation logs"),
63
  flagging_mode="never",
64
  )
65
 
66
  with gr.Tab("Cookie test"):
67
  gr.Interface(
68
  fn=test_restart,
69
- inputs=gr.Textbox(label="Restart a space with permissions"),
70
  outputs=[
71
- gr.Textbox(label="Status"),
72
- gr.Markdown(container=True, show_label=True, label="Shortcut"),
73
  ],
74
  flagging_mode="never",
75
  )
@@ -78,7 +81,7 @@ if __name__ == "__main__":
78
  gr.Interface(
79
  fn=send_email,
80
  inputs=None,
81
- outputs=gr.Textbox(label="Status"),
82
  flagging_mode="never",
83
  )
84
 
 
51
  gr.Interface(
52
  fn=tasklst,
53
  inputs=None,
54
+ outputs=gr.TextArea(
55
+ label="Current task details",
56
+ show_copy_button=True,
57
+ ),
58
  flagging_mode="never",
59
  )
60
 
 
62
  gr.Interface(
63
  fn=trigger,
64
  inputs=None,
65
+ outputs=gr.TextArea(label="Activation logs", show_copy_button=True),
66
  flagging_mode="never",
67
  )
68
 
69
  with gr.Tab("Cookie test"):
70
  gr.Interface(
71
  fn=test_restart,
72
+ inputs=gr.Textbox(label="Restart a gradio space with permissions"),
73
  outputs=[
74
+ gr.Textbox(label="Status", show_copy_button=True),
75
+ gr.Markdown(),
76
  ],
77
  flagging_mode="never",
78
  )
 
81
  gr.Interface(
82
  fn=send_email,
83
  inputs=None,
84
+ outputs=gr.Textbox(label="Status", show_copy_button=True),
85
  flagging_mode="never",
86
  )
87