Wwwduojin commited on
Commit
d999152
1 Parent(s): 5848f7f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -28
app.py CHANGED
@@ -381,37 +381,11 @@ scheduler.start()
381
  # Both launches the space and its CI
382
  configure_space_ci(
383
  demo.queue(default_concurrency_limit=40),
 
384
  # trusted_authors=[], # add manually trusted authors
385
  # private="True", # ephemeral spaces will have same visibility as the main space. Otherwise, set to `True` or `False` explicitly.
386
  # variables={}, # We overwrite HF_HOME as tmp CI spaces will have no cache
387
  # secrets=[" HF_TOKEN", "H4_TOKEN"], # which secret do I want to copy from the main space? Can be a `List[str]`.
388
  # hardware=None, # "cpu-basic" by default. Otherwise set to "auto" to have same hardware as the main space or any valid string value.
389
  # storage=None, # no storage by default. Otherwise set to "auto" to have same storage as the main space or any valid string value.
390
- ).launch()
391
-
392
-
393
- # scheduler = BackgroundScheduler()
394
- # scheduler.add_job(restart_space, "interval", seconds=1800)
395
- # scheduler.start()
396
- # def submit_model(model_name, model_description):
397
- # # 这里的逻辑是用来处理模型提交的。
398
- # # 你需要将模型添加到评估队列,并返回提交状态。
399
- # # 这个示例函数只是返回一个确认消息。
400
- # return f"模型 '{model_name}' 已提交评估。描述: {model_description}"
401
- #
402
- # # 创建一个Gradio表单接口
403
- # iface = gr.Interface(
404
- # fn=submit_model, # 提交模型的函数
405
- # inputs=[ # 输入字段
406
- # gr.Textbox(label="模型名称"),
407
- # gr.TextArea(label="模型描述")
408
- # ],
409
- # outputs=[ # 输出字段
410
- # gr.Text(label="提交状态")
411
- # ],
412
- # title="Open MLLM Leaderboard", # 界面标题
413
- # description="The Open LLM Leaderboard aims to track, rank, and evaluate LLMs and chatbots.", # 界面描述
414
- # article="Submit a model for automated evaluation on the Open LLM Leaderboard on the 'Submit' page! The leaderboard's backend runs the great EleutherAI Language Model Evaluation Harness - read more details in the 'About' page!" # 底部的文章或额外信息
415
- # )
416
- #
417
- # iface.launch()
 
381
  # Both launches the space and its CI
382
  configure_space_ci(
383
  demo.queue(default_concurrency_limit=40),
384
+ kwargs=[]
385
  # trusted_authors=[], # add manually trusted authors
386
  # private="True", # ephemeral spaces will have same visibility as the main space. Otherwise, set to `True` or `False` explicitly.
387
  # variables={}, # We overwrite HF_HOME as tmp CI spaces will have no cache
388
  # secrets=[" HF_TOKEN", "H4_TOKEN"], # which secret do I want to copy from the main space? Can be a `List[str]`.
389
  # hardware=None, # "cpu-basic" by default. Otherwise set to "auto" to have same hardware as the main space or any valid string value.
390
  # storage=None, # no storage by default. Otherwise set to "auto" to have same storage as the main space or any valid string value.
391
+ ).launch()