hgmiya commited on
Commit
0807843
·
1 Parent(s): e05474a

コメントアウトされたGAIAデータのダウンロード処理をapp.pyから削除し、デモのキューの同時実行数を1に設定

Browse files
Files changed (1) hide show
  1. app.py +8 -6
app.py CHANGED
@@ -465,12 +465,12 @@ async def run_and_submit_all( profile: gr.OAuthProfile | None):
465
  submit_url = f"{api_url}/submit"
466
 
467
  # 0. Download GAIA data
468
- try:
469
- download_gaia_validation()
470
- except Exception as e:
471
- err = f"Error downloading GAIA validation data: {e}"
472
- print(err)
473
- return err, None
474
 
475
  # 1. Instantiate Agent ( modify this part to create your agent)
476
  try:
@@ -647,6 +647,8 @@ with gr.Blocks() as demo:
647
  outputs=[status_output, results_table]
648
  )
649
 
 
 
650
  if __name__ == "__main__":
651
  print("\n" + "-"*30 + " App Starting " + "-"*30)
652
  # Check for SPACE_HOST and SPACE_ID at startup for information
 
465
  submit_url = f"{api_url}/submit"
466
 
467
  # 0. Download GAIA data
468
+ #try:
469
+ # download_gaia_validation()
470
+ #except Exception as e:
471
+ # err = f"Error downloading GAIA validation data: {e}"
472
+ # print(err)
473
+ # return err, None
474
 
475
  # 1. Instantiate Agent ( modify this part to create your agent)
476
  try:
 
647
  outputs=[status_output, results_table]
648
  )
649
 
650
+ demo.queue(concurrency_count=1)
651
+
652
  if __name__ == "__main__":
653
  print("\n" + "-"*30 + " App Starting " + "-"*30)
654
  # Check for SPACE_HOST and SPACE_ID at startup for information