Spaces:
Running
Running
ZhangYuhan
commited on
Commit
•
f273102
1
Parent(s):
3b9cf95
update app
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import os
|
|
3 |
import json
|
4 |
from serve.gradio_web_t2s import *
|
5 |
from serve.gradio_web_i2s import *
|
6 |
-
from serve.leaderboard import build_leaderboard_tab
|
7 |
from model.model_manager import ModelManager
|
8 |
from pathlib import Path
|
9 |
from constants import SERVER_PORT, ROOT_PATH, ELO_RESULTS_DIR
|
@@ -27,6 +27,9 @@ def build_combine_demo(models, elo_results_file, leaderboard_table_file):
|
|
27 |
if elo_results_file:
|
28 |
with gr.Tab("Text-to-3D Leaderboard", id=3):
|
29 |
build_leaderboard_tab(elo_results_file['t2s_generation'], leaderboard_table_file['t2s_generation'])
|
|
|
|
|
|
|
30 |
with gr.Tab("About Us", id=4):
|
31 |
build_about()
|
32 |
|
@@ -41,6 +44,9 @@ def build_combine_demo(models, elo_results_file, leaderboard_table_file):
|
|
41 |
if elo_results_file:
|
42 |
with gr.Tab("Image-to-3D Leaderboard", id=8):
|
43 |
build_leaderboard_tab(elo_results_file['i2s_generation'], leaderboard_table_file['i2s_generation'])
|
|
|
|
|
|
|
44 |
with gr.Tab("About Us", id=9):
|
45 |
build_about()
|
46 |
|
|
|
3 |
import json
|
4 |
from serve.gradio_web_t2s import *
|
5 |
from serve.gradio_web_i2s import *
|
6 |
+
from serve.leaderboard import build_leaderboard_tab, build_empty_leaderboard_tab
|
7 |
from model.model_manager import ModelManager
|
8 |
from pathlib import Path
|
9 |
from constants import SERVER_PORT, ROOT_PATH, ELO_RESULTS_DIR
|
|
|
27 |
if elo_results_file:
|
28 |
with gr.Tab("Text-to-3D Leaderboard", id=3):
|
29 |
build_leaderboard_tab(elo_results_file['t2s_generation'], leaderboard_table_file['t2s_generation'])
|
30 |
+
else:
|
31 |
+
with gr.Tab("Text-to-3D Leaderboard", id=3):
|
32 |
+
build_empty_leaderboard_tab()
|
33 |
with gr.Tab("About Us", id=4):
|
34 |
build_about()
|
35 |
|
|
|
44 |
if elo_results_file:
|
45 |
with gr.Tab("Image-to-3D Leaderboard", id=8):
|
46 |
build_leaderboard_tab(elo_results_file['i2s_generation'], leaderboard_table_file['i2s_generation'])
|
47 |
+
else:
|
48 |
+
with gr.Tab("Image-to-3D Leaderboard", id=8):
|
49 |
+
build_empty_leaderboard_tab()
|
50 |
with gr.Tab("About Us", id=9):
|
51 |
build_about()
|
52 |
|