admin commited on
Commit
a056865
1 Parent(s): eca06e7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -180,7 +180,7 @@ def activate(hf_users: str, ms_users: str):
180
  return pd.DataFrame(output)
181
 
182
 
183
- def monitor(hf_users: str, ms_users: str, period=4):
184
  if schedule.get_jobs():
185
  return
186
 
@@ -205,8 +205,8 @@ with gr.Blocks() as iface:
205
  title="Start keeping all spaces active periodically",
206
  fn=monitor,
207
  inputs=[
208
- gr.Textbox(label="HuggingFace", value="monet-joe;MuGeminorum;ccmusic-database"),
209
- gr.Textbox(label="ModelScope", value="monetjoe;MuGeminorum;ccmusic"),
210
  ],
211
  outputs=None,
212
  allow_flagging=False,
@@ -222,8 +222,8 @@ with gr.Blocks() as iface:
222
  title="Test activation for all spaces once",
223
  fn=activate,
224
  inputs=[
225
- gr.Textbox(label="HuggingFace", placeholder="Usernames joint by ;"),
226
- gr.Textbox(label="ModelScope", placeholder="Usernames joint by ;"),
227
  ],
228
  outputs=gr.Dataframe(label="Activated spaces"),
229
  allow_flagging=False,
 
180
  return pd.DataFrame(output)
181
 
182
 
183
+ def monitor(hf_users: str, ms_users: str, period=3):
184
  if schedule.get_jobs():
185
  return
186
 
 
205
  title="Start keeping all spaces active periodically",
206
  fn=monitor,
207
  inputs=[
208
+ gr.Textbox(label="HuggingFace", value="monet-joe;MuGeminorum;ccmusic-database", placeholder="Usernames joint by ;"),
209
+ gr.Textbox(label="ModelScope", value="monetjoe;MuGeminorum;ccmusic", placeholder="Usernames joint by ;"),
210
  ],
211
  outputs=None,
212
  allow_flagging=False,
 
222
  title="Test activation for all spaces once",
223
  fn=activate,
224
  inputs=[
225
+ gr.Textbox(label="HuggingFace", value="monet-joe;MuGeminorum;ccmusic-database", placeholder="Usernames joint by ;"),
226
+ gr.Textbox(label="ModelScope", value="monetjoe;MuGeminorum;ccmusic", placeholder="Usernames joint by ;"),
227
  ],
228
  outputs=gr.Dataframe(label="Activated spaces"),
229
  allow_flagging=False,