Upload app.py
Browse files
app.py
CHANGED
|
@@ -45,8 +45,8 @@ def upload_file(files):
|
|
| 45 |
# return gr.update(visible=True), gr.update(visible=False), gr.update(visible=True)
|
| 46 |
# # upload_data=json.loads(input_file)
|
| 47 |
# upload_content = input_file
|
| 48 |
-
#
|
| 49 |
-
#
|
| 50 |
# filename = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
|
| 51 |
|
| 52 |
# now = datetime.datetime.now()
|
|
@@ -615,354 +615,354 @@ with block:
|
|
| 615 |
gr.Markdown(
|
| 616 |
LEADERBORAD_INTRODUCTION
|
| 617 |
)
|
| 618 |
-
with gr.Tabs(elem_classes="tab-buttons") as tabs:
|
| 619 |
-
|
| 620 |
-
|
| 621 |
-
|
| 622 |
-
|
| 623 |
-
|
| 624 |
-
|
| 625 |
-
|
| 626 |
-
|
| 627 |
-
|
| 628 |
-
|
| 629 |
|
| 630 |
-
|
| 631 |
-
|
| 632 |
-
|
| 633 |
-
|
| 634 |
-
|
| 635 |
-
|
| 636 |
-
|
| 637 |
-
|
| 638 |
-
|
| 639 |
-
|
| 640 |
-
|
| 641 |
-
|
| 642 |
-
|
| 643 |
-
|
| 644 |
-
|
| 645 |
-
|
| 646 |
-
|
| 647 |
-
|
| 648 |
-
|
| 649 |
-
|
| 650 |
-
|
| 651 |
-
|
| 652 |
-
|
| 653 |
-
|
| 654 |
-
|
| 655 |
-
|
| 656 |
-
|
| 657 |
-
|
| 658 |
-
|
| 659 |
-
|
| 660 |
-
|
| 661 |
-
|
| 662 |
-
|
| 663 |
-
|
| 664 |
-
|
| 665 |
-
|
| 666 |
-
|
| 667 |
-
|
| 668 |
|
| 669 |
-
|
| 670 |
-
|
| 671 |
-
|
| 672 |
-
|
| 673 |
-
|
| 674 |
-
|
| 675 |
-
|
| 676 |
-
|
| 677 |
-
|
| 678 |
-
|
| 679 |
-
|
| 680 |
-
|
| 681 |
-
|
| 682 |
-
|
| 683 |
-
|
| 684 |
-
|
| 685 |
-
|
| 686 |
-
|
| 687 |
-
|
| 688 |
|
| 689 |
-
|
| 690 |
-
|
| 691 |
-
|
| 692 |
-
|
| 693 |
-
|
| 694 |
-
|
| 695 |
-
|
| 696 |
-
|
| 697 |
-
|
| 698 |
-
|
| 699 |
-
|
| 700 |
-
|
| 701 |
-
|
| 702 |
-
|
| 703 |
-
|
| 704 |
|
| 705 |
-
|
| 706 |
|
| 707 |
-
|
| 708 |
-
|
| 709 |
-
|
| 710 |
-
|
| 711 |
-
|
| 712 |
-
|
| 713 |
-
|
| 714 |
-
|
| 715 |
-
|
| 716 |
-
|
| 717 |
-
|
| 718 |
-
|
| 719 |
-
|
| 720 |
-
|
| 721 |
-
|
| 722 |
-
|
| 723 |
-
|
| 724 |
-
|
| 725 |
-
|
| 726 |
-
|
| 727 |
-
|
| 728 |
-
|
| 729 |
-
|
| 730 |
-
|
| 731 |
-
|
| 732 |
-
|
| 733 |
-
|
| 734 |
-
|
| 735 |
-
|
| 736 |
-
|
| 737 |
-
|
| 738 |
-
|
| 739 |
-
|
| 740 |
-
|
| 741 |
-
|
| 742 |
-
|
| 743 |
-
|
| 744 |
-
|
| 745 |
|
| 746 |
-
|
| 747 |
-
|
| 748 |
-
|
| 749 |
|
| 750 |
-
|
| 751 |
-
|
| 752 |
-
|
| 753 |
-
|
| 754 |
-
|
| 755 |
-
|
| 756 |
-
|
| 757 |
-
|
| 758 |
-
|
| 759 |
|
| 760 |
-
|
| 761 |
-
|
| 762 |
-
|
| 763 |
-
|
| 764 |
-
|
| 765 |
-
|
| 766 |
-
|
| 767 |
-
|
| 768 |
-
|
| 769 |
-
|
| 770 |
-
|
| 771 |
-
|
| 772 |
-
|
| 773 |
-
|
| 774 |
-
|
| 775 |
-
|
| 776 |
-
|
| 777 |
-
|
| 778 |
-
|
| 779 |
-
|
| 780 |
-
|
| 781 |
-
|
| 782 |
-
|
| 783 |
-
|
| 784 |
-
|
| 785 |
-
|
| 786 |
-
|
| 787 |
-
|
| 788 |
-
|
| 789 |
-
|
| 790 |
-
|
| 791 |
-
|
| 792 |
-
|
| 793 |
-
|
| 794 |
-
|
| 795 |
-
|
| 796 |
-
|
| 797 |
-
|
| 798 |
|
| 799 |
-
|
| 800 |
-
|
| 801 |
-
|
| 802 |
-
|
| 803 |
-
|
| 804 |
-
|
| 805 |
-
|
| 806 |
-
|
| 807 |
-
|
| 808 |
-
|
| 809 |
-
|
| 810 |
|
| 811 |
-
|
| 812 |
-
|
| 813 |
-
|
| 814 |
-
|
| 815 |
-
|
| 816 |
-
|
| 817 |
-
|
| 818 |
-
|
| 819 |
-
|
| 820 |
-
|
| 821 |
-
|
| 822 |
-
|
| 823 |
-
|
| 824 |
-
|
| 825 |
-
|
| 826 |
-
|
| 827 |
-
|
| 828 |
-
|
| 829 |
-
|
| 830 |
-
|
| 831 |
-
|
| 832 |
-
|
| 833 |
-
|
| 834 |
-
|
| 835 |
-
|
| 836 |
-
|
| 837 |
-
|
| 838 |
-
|
| 839 |
-
|
| 840 |
-
|
| 841 |
-
|
| 842 |
-
|
| 843 |
-
|
| 844 |
-
|
| 845 |
-
|
| 846 |
-
|
| 847 |
-
|
| 848 |
-
|
| 849 |
-
|
| 850 |
-
|
| 851 |
-
|
| 852 |
-
|
| 853 |
-
|
| 854 |
-
|
| 855 |
-
|
| 856 |
-
|
| 857 |
-
|
| 858 |
-
|
| 859 |
|
| 860 |
|
| 861 |
-
|
| 862 |
-
|
| 863 |
-
|
| 864 |
-
|
| 865 |
-
|
| 866 |
-
|
| 867 |
-
|
| 868 |
-
|
| 869 |
-
|
| 870 |
-
|
| 871 |
-
|
| 872 |
-
|
| 873 |
-
|
| 874 |
-
|
| 875 |
-
|
| 876 |
-
|
| 877 |
-
|
| 878 |
-
|
| 879 |
-
|
| 880 |
-
|
| 881 |
-
|
| 882 |
-
|
| 883 |
|
| 884 |
-
|
| 885 |
-
|
| 886 |
-
|
| 887 |
-
|
| 888 |
-
|
| 889 |
-
|
| 890 |
-
|
| 891 |
-
|
| 892 |
-
|
| 893 |
-
|
| 894 |
-
|
| 895 |
-
|
| 896 |
-
|
| 897 |
-
|
| 898 |
-
|
| 899 |
-
|
| 900 |
-
|
| 901 |
-
|
| 902 |
-
|
| 903 |
-
|
| 904 |
-
|
| 905 |
-
|
| 906 |
-
|
| 907 |
-
|
| 908 |
-
|
| 909 |
-
|
| 910 |
-
|
| 911 |
-
|
| 912 |
-
|
| 913 |
-
|
| 914 |
-
|
| 915 |
-
|
| 916 |
-
|
| 917 |
-
|
| 918 |
-
|
| 919 |
-
|
| 920 |
-
|
| 921 |
-
|
| 922 |
-
|
| 923 |
-
|
| 924 |
-
|
| 925 |
-
|
| 926 |
-
|
| 927 |
-
|
| 928 |
-
|
| 929 |
-
|
| 930 |
-
|
| 931 |
-
|
| 932 |
|
| 933 |
|
| 934 |
-
|
| 935 |
-
|
| 936 |
-
|
| 937 |
-
|
| 938 |
-
|
| 939 |
-
|
| 940 |
-
|
| 941 |
-
|
| 942 |
-
|
| 943 |
-
|
| 944 |
-
|
| 945 |
-
|
| 946 |
-
|
| 947 |
-
|
| 948 |
-
|
| 949 |
-
|
| 950 |
-
|
| 951 |
-
|
| 952 |
-
|
| 953 |
-
|
| 954 |
-
|
| 955 |
-
|
| 956 |
-
|
| 957 |
-
|
| 958 |
-
|
| 959 |
-
def refresh_data():
|
| 960 |
-
|
| 961 |
-
|
| 962 |
-
|
| 963 |
-
with gr.Row():
|
| 964 |
-
|
| 965 |
-
|
| 966 |
|
| 967 |
|
| 968 |
block.launch()
|
|
|
|
| 45 |
# return gr.update(visible=True), gr.update(visible=False), gr.update(visible=True)
|
| 46 |
# # upload_data=json.loads(input_file)
|
| 47 |
# upload_content = input_file
|
| 48 |
+
# submission_repo = Repository(local_dir=SUBMISSION_NAME, clone_from=SUBMISSION_URL, use_auth_token=HF_TOKEN, repo_type="dataset")
|
| 49 |
+
# submission_repo.git_pull()
|
| 50 |
# filename = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
|
| 51 |
|
| 52 |
# now = datetime.datetime.now()
|
|
|
|
| 615 |
gr.Markdown(
|
| 616 |
LEADERBORAD_INTRODUCTION
|
| 617 |
)
|
| 618 |
+
# with gr.Tabs(elem_classes="tab-buttons") as tabs:
|
| 619 |
+
# # Table 0
|
| 620 |
+
# with gr.TabItem("π VBench", elem_id="vbench-tab-table", id=1):
|
| 621 |
+
# with gr.Row():
|
| 622 |
+
# with gr.Accordion("Citation", open=False):
|
| 623 |
+
# citation_button = gr.Textbox(
|
| 624 |
+
# value=CITATION_BUTTON_TEXT,
|
| 625 |
+
# label=CITATION_BUTTON_LABEL,
|
| 626 |
+
# elem_id="citation-button",
|
| 627 |
+
# lines=14,
|
| 628 |
+
# )
|
| 629 |
|
| 630 |
+
# gr.Markdown(
|
| 631 |
+
# TABLE_INTRODUCTION
|
| 632 |
+
# )
|
| 633 |
+
# with gr.Row():
|
| 634 |
+
# with gr.Column(scale=0.2):
|
| 635 |
+
# choosen_q = gr.Button("Select Quality Dimensions")
|
| 636 |
+
# choosen_s = gr.Button("Select Semantic Dimensions")
|
| 637 |
+
# # enable_b = gr.Button("Select All")
|
| 638 |
+
# disable_b = gr.Button("Deselect All")
|
| 639 |
+
|
| 640 |
+
# with gr.Column(scale=0.8):
|
| 641 |
+
# vbench_team_filter = gr.Checkbox(
|
| 642 |
+
# label="Sampled by VBench Team (Uncheck to view all submissions)",
|
| 643 |
+
# value=False,
|
| 644 |
+
# interactive=True
|
| 645 |
+
# )
|
| 646 |
+
# vbench_validate_filter = gr.Checkbox(
|
| 647 |
+
# label="Evaluated by VBench Team (Uncheck to view all submissions)",
|
| 648 |
+
# value=True,
|
| 649 |
+
# interactive=True
|
| 650 |
+
# )
|
| 651 |
+
# # selection for column part:
|
| 652 |
+
# checkbox_group = gr.CheckboxGroup(
|
| 653 |
+
# choices=TASK_INFO,
|
| 654 |
+
# value=DEFAULT_INFO,
|
| 655 |
+
# label="Evaluation Dimension",
|
| 656 |
+
# interactive=True,
|
| 657 |
+
# )
|
| 658 |
+
|
| 659 |
+
# data_component = gr.components.Dataframe(
|
| 660 |
+
# value=get_baseline_df,
|
| 661 |
+
# headers=COLUMN_NAMES,
|
| 662 |
+
# type="pandas",
|
| 663 |
+
# datatype=DATA_TITILE_TYPE,
|
| 664 |
+
# interactive=False,
|
| 665 |
+
# visible=True,
|
| 666 |
+
# height=700,
|
| 667 |
+
# )
|
| 668 |
|
| 669 |
+
# choosen_q.click(choose_all_quailty, inputs=None, outputs=[checkbox_group]).then(fn=on_filter_model_size_method_change, inputs=[ checkbox_group, vbench_team_filter,vbench_validate_filter], outputs=data_component)
|
| 670 |
+
# choosen_s.click(choose_all_semantic, inputs=None, outputs=[checkbox_group]).then(fn=on_filter_model_size_method_change, inputs=[ checkbox_group, vbench_team_filter,vbench_validate_filter], outputs=data_component)
|
| 671 |
+
# # enable_b.click(enable_all, inputs=None, outputs=[checkbox_group]).then(fn=on_filter_model_size_method_change, inputs=[ checkbox_group, vbench_team_filter], outputs=data_component)
|
| 672 |
+
# disable_b.click(disable_all, inputs=None, outputs=[checkbox_group]).then(fn=on_filter_model_size_method_change, inputs=[ checkbox_group, vbench_team_filter, vbench_validate_filter], outputs=data_component)
|
| 673 |
+
# checkbox_group.change(fn=on_filter_model_size_method_change, inputs=[ checkbox_group, vbench_team_filter, vbench_validate_filter], outputs=data_component)
|
| 674 |
+
# vbench_team_filter.change(fn=on_filter_model_size_method_change, inputs=[checkbox_group, vbench_team_filter, vbench_validate_filter], outputs=data_component)
|
| 675 |
+
# vbench_validate_filter.change(fn=on_filter_model_size_method_change, inputs=[checkbox_group, vbench_team_filter, vbench_validate_filter], outputs=data_component)
|
| 676 |
+
# # Table 1
|
| 677 |
+
# with gr.TabItem("Video Quality", elem_id="vbench-tab-table", id=2):
|
| 678 |
+
# with gr.Accordion("INSTRUCTION", open=False):
|
| 679 |
+
# citation_button = gr.Textbox(
|
| 680 |
+
# value=QUALITY_CLAIM_TEXT,
|
| 681 |
+
# label="",
|
| 682 |
+
# elem_id="quality-button",
|
| 683 |
+
# lines=2,
|
| 684 |
+
# )
|
| 685 |
+
# with gr.Row():
|
| 686 |
+
# with gr.Column(scale=1.0):
|
| 687 |
+
# # selection for column part:
|
| 688 |
|
| 689 |
+
# checkbox_group_quality = gr.CheckboxGroup(
|
| 690 |
+
# choices=QUALITY_TAB,
|
| 691 |
+
# value=QUALITY_TAB,
|
| 692 |
+
# label="Evaluation Quality Dimension",
|
| 693 |
+
# interactive=True,
|
| 694 |
+
# )
|
| 695 |
+
|
| 696 |
+
# data_component_quality = gr.components.Dataframe(
|
| 697 |
+
# value=get_baseline_df_quality,
|
| 698 |
+
# headers=COLUMN_NAMES_QUALITY,
|
| 699 |
+
# type="pandas",
|
| 700 |
+
# datatype=DATA_TITILE_TYPE,
|
| 701 |
+
# interactive=False,
|
| 702 |
+
# visible=True,
|
| 703 |
+
# )
|
| 704 |
|
| 705 |
+
# checkbox_group_quality.change(fn=on_filter_model_size_method_change_quality, inputs=[checkbox_group_quality], outputs=data_component_quality)
|
| 706 |
|
| 707 |
+
# # Table i2v
|
| 708 |
+
# with gr.TabItem("VBench-I2V", elem_id="vbench-tab-table", id=3):
|
| 709 |
+
# with gr.Accordion("NOTE", open=False):
|
| 710 |
+
# i2v_note_button = gr.Textbox(
|
| 711 |
+
# value=I2V_CLAIM_TEXT,
|
| 712 |
+
# label="",
|
| 713 |
+
# elem_id="quality-button",
|
| 714 |
+
# lines=3,
|
| 715 |
+
# )
|
| 716 |
+
# with gr.Row():
|
| 717 |
+
# with gr.Column(scale=1.0):
|
| 718 |
+
# # selection for column part:
|
| 719 |
+
# with gr.Row():
|
| 720 |
+
# vbench_team_filter_i2v = gr.Checkbox(
|
| 721 |
+
# label="Sampled by VBench Team (Uncheck to view all submissions)",
|
| 722 |
+
# value=False,
|
| 723 |
+
# interactive=True
|
| 724 |
+
# )
|
| 725 |
+
# vbench_validate_filter_i2v = gr.Checkbox(
|
| 726 |
+
# label="Evaluated by VBench Team (Uncheck to view all submissions)",
|
| 727 |
+
# value=False,
|
| 728 |
+
# interactive=True
|
| 729 |
+
# )
|
| 730 |
+
# checkbox_group_i2v = gr.CheckboxGroup(
|
| 731 |
+
# choices=I2V_TAB,
|
| 732 |
+
# value=I2V_TAB,
|
| 733 |
+
# label="Evaluation Quality Dimension",
|
| 734 |
+
# interactive=True,
|
| 735 |
+
# )
|
| 736 |
+
|
| 737 |
+
# data_component_i2v = gr.components.Dataframe(
|
| 738 |
+
# value=get_baseline_df_i2v,
|
| 739 |
+
# headers=COLUMN_NAMES_I2V,
|
| 740 |
+
# type="pandas",
|
| 741 |
+
# datatype=I2V_TITILE_TYPE,
|
| 742 |
+
# interactive=False,
|
| 743 |
+
# visible=True,
|
| 744 |
+
# )
|
| 745 |
|
| 746 |
+
# checkbox_group_i2v.change(fn=on_filter_model_size_method_change_i2v, inputs=[checkbox_group_i2v, vbench_team_filter_i2v,vbench_validate_filter_i2v], outputs=data_component_i2v)
|
| 747 |
+
# vbench_team_filter_i2v.change(fn=on_filter_model_size_method_change_i2v, inputs=[checkbox_group_i2v, vbench_team_filter_i2v,vbench_validate_filter_i2v], outputs=data_component_i2v)
|
| 748 |
+
# vbench_validate_filter_i2v.change(fn=on_filter_model_size_method_change_i2v, inputs=[checkbox_group_i2v, vbench_team_filter_i2v,vbench_validate_filter_i2v], outputs=data_component_i2v)
|
| 749 |
|
| 750 |
+
# with gr.TabItem("π VBench-Long", elem_id="vbench-tab-table", id=4):
|
| 751 |
+
# with gr.Row():
|
| 752 |
+
# with gr.Accordion("INSTRUCTION", open=False):
|
| 753 |
+
# citation_button = gr.Textbox(
|
| 754 |
+
# value=LONG_CLAIM_TEXT,
|
| 755 |
+
# label="",
|
| 756 |
+
# elem_id="long-ins-button",
|
| 757 |
+
# lines=2,
|
| 758 |
+
# )
|
| 759 |
|
| 760 |
+
# gr.Markdown(
|
| 761 |
+
# TABLE_INTRODUCTION
|
| 762 |
+
# )
|
| 763 |
+
# with gr.Row():
|
| 764 |
+
# with gr.Column(scale=0.2):
|
| 765 |
+
# choosen_q_long = gr.Button("Select Quality Dimensions")
|
| 766 |
+
# choosen_s_long = gr.Button("Select Semantic Dimensions")
|
| 767 |
+
# enable_b_long = gr.Button("Select All")
|
| 768 |
+
# disable_b_long = gr.Button("Deselect All")
|
| 769 |
+
|
| 770 |
+
# with gr.Column(scale=0.8):
|
| 771 |
+
# with gr.Row():
|
| 772 |
+
# vbench_team_filter_long = gr.Checkbox(
|
| 773 |
+
# label="Sampled by VBench Team (Uncheck to view all submissions)",
|
| 774 |
+
# value=False,
|
| 775 |
+
# interactive=True
|
| 776 |
+
# )
|
| 777 |
+
# vbench_validate_filter_long = gr.Checkbox(
|
| 778 |
+
# label="Evaluated by VBench Team (Uncheck to view all submissions)",
|
| 779 |
+
# value=False,
|
| 780 |
+
# interactive=True
|
| 781 |
+
# )
|
| 782 |
+
# checkbox_group_long = gr.CheckboxGroup(
|
| 783 |
+
# choices=TASK_INFO,
|
| 784 |
+
# value=DEFAULT_INFO,
|
| 785 |
+
# label="Evaluation Dimension",
|
| 786 |
+
# interactive=True,
|
| 787 |
+
# )
|
| 788 |
+
|
| 789 |
+
# data_component = gr.components.Dataframe(
|
| 790 |
+
# value=get_baseline_df_long,
|
| 791 |
+
# headers=COLUMN_NAMES,
|
| 792 |
+
# type="pandas",
|
| 793 |
+
# datatype=DATA_TITILE_TYPE,
|
| 794 |
+
# interactive=False,
|
| 795 |
+
# visible=True,
|
| 796 |
+
# height=700,
|
| 797 |
+
# )
|
| 798 |
|
| 799 |
+
# choosen_q_long.click(choose_all_quailty, inputs=None, outputs=[checkbox_group_long]).then(fn=on_filter_model_size_method_change_long, inputs=[ checkbox_group_long, vbench_team_filter_long, vbench_validate_filter_long], outputs=data_component)
|
| 800 |
+
# choosen_s_long.click(choose_all_semantic, inputs=None, outputs=[checkbox_group_long]).then(fn=on_filter_model_size_method_change_long, inputs=[ checkbox_group_long, vbench_team_filter_long, vbench_validate_filter_long], outputs=data_component)
|
| 801 |
+
# enable_b_long.click(enable_all, inputs=None, outputs=[checkbox_group_long]).then(fn=on_filter_model_size_method_change_long, inputs=[ checkbox_group_long, vbench_team_filter_long, vbench_validate_filter_long], outputs=data_component)
|
| 802 |
+
# disable_b_long.click(disable_all, inputs=None, outputs=[checkbox_group_long]).then(fn=on_filter_model_size_method_change_long, inputs=[ checkbox_group_long, vbench_team_filter_long, vbench_validate_filter_long], outputs=data_component)
|
| 803 |
+
# checkbox_group_long.change(fn=on_filter_model_size_method_change_long, inputs=[checkbox_group_long, vbench_team_filter_long,vbench_validate_filter_long], outputs=data_component)
|
| 804 |
+
# vbench_team_filter_long.change(fn=on_filter_model_size_method_change_long, inputs=[checkbox_group_long, vbench_team_filter_long,vbench_validate_filter_long], outputs=data_component)
|
| 805 |
+
# vbench_validate_filter_long.change(fn=on_filter_model_size_method_change_long, inputs=[checkbox_group_long, vbench_team_filter_long,vbench_validate_filter_long], outputs=data_component)
|
| 806 |
+
|
| 807 |
+
# # table info
|
| 808 |
+
# with gr.TabItem("π About", elem_id="mvbench-tab-table", id=5):
|
| 809 |
+
# gr.Markdown(LEADERBORAD_INFO, elem_classes="markdown-text")
|
| 810 |
|
| 811 |
+
# # table submission
|
| 812 |
+
# with gr.TabItem("π [T2V]Submit here! ", elem_id="mvbench-tab-table", id=6):
|
| 813 |
+
# gr.Markdown(LEADERBORAD_INTRODUCTION, elem_classes="markdown-text")
|
| 814 |
+
|
| 815 |
+
# with gr.Row():
|
| 816 |
+
# gr.Markdown(SUBMIT_INTRODUCTION, elem_classes="markdown-text")
|
| 817 |
+
|
| 818 |
+
# with gr.Row():
|
| 819 |
+
# gr.Markdown("# βοΈβ¨ Submit your model evaluation json file here!", elem_classes="markdown-text")
|
| 820 |
+
|
| 821 |
+
# with gr.Row():
|
| 822 |
+
# gr.Markdown("Here is a required field", elem_classes="markdown-text")
|
| 823 |
+
# with gr.Row():
|
| 824 |
+
# with gr.Column():
|
| 825 |
+
# model_name_textbox = gr.Textbox(
|
| 826 |
+
# label="Model name", placeholder="Required field"
|
| 827 |
+
# )
|
| 828 |
+
# revision_name_textbox = gr.Textbox(
|
| 829 |
+
# label="Revision Model Name(Optional)", placeholder="If you need to update the previous results, please fill in this line"
|
| 830 |
+
# )
|
| 831 |
+
# access_type = gr.Dropdown(["Open Source", "Ready to Open Source", "API", "Close"], label="Please select the way user can access your model. You can update the content by revision_name, or contact the VBench Team.")
|
| 832 |
+
|
| 833 |
+
# with gr.Column():
|
| 834 |
+
# model_link = gr.Textbox(
|
| 835 |
+
# label="Project Page/Paper Link/Github/HuggingFace Repo", placeholder="Required field. If filling in the wrong information, your results may be removed."
|
| 836 |
+
# )
|
| 837 |
+
# team_name = gr.Textbox(
|
| 838 |
+
# label="Your Team Name(If left blank, it will be user upload)", placeholder="User Upload"
|
| 839 |
+
# )
|
| 840 |
+
# contact_email = gr.Textbox(
|
| 841 |
+
# label="E-Mail(Will not be displayed)", placeholder="Required field"
|
| 842 |
+
# )
|
| 843 |
+
# with gr.Row():
|
| 844 |
+
# gr.Markdown("The following is optional and will be synced to [GitHub] (https://github.com/Vchitect/VBench/tree/master/sampled_videos#what-are-the-details-of-the-video-generation-models)", elem_classes="markdown-text")
|
| 845 |
+
# with gr.Row():
|
| 846 |
+
# release_time = gr.Textbox(label="Time of Publish", placeholder="1970-01-01")
|
| 847 |
+
# model_resolution = gr.Textbox(label="resolution", placeholder="Width x Height")
|
| 848 |
+
# model_fps = gr.Textbox(label="model fps", placeholder="FPS(int)")
|
| 849 |
+
# model_frame = gr.Textbox(label="model frame count", placeholder="INT")
|
| 850 |
+
# model_video_length = gr.Textbox(label="model video length", placeholder="float(2.0)")
|
| 851 |
+
# model_checkpoint = gr.Textbox(label="model checkpoint", placeholder="optional")
|
| 852 |
+
# model_commit_id = gr.Textbox(label="github commit id", placeholder='main')
|
| 853 |
+
# model_video_format = gr.Textbox(label="pipeline format", placeholder='mp4')
|
| 854 |
+
# with gr.Column():
|
| 855 |
+
# input_file = gr.components.File(label = "Click to Upload a ZIP File", file_count="single", type='binary')
|
| 856 |
+
# submit_button = gr.Button("Submit Eval")
|
| 857 |
+
# submit_succ_button = gr.Markdown("Submit Success! Please press refresh and return to LeaderBoard!", visible=False)
|
| 858 |
+
# fail_textbox = gr.Markdown('<span style="color:red;">Please ensure that the `Model Name`, `Project Page`, and `Email` are filled in correctly.</span>', elem_classes="markdown-text",visible=False)
|
| 859 |
|
| 860 |
|
| 861 |
+
# submission_result = gr.Markdown()
|
| 862 |
+
# # submit_button.click(
|
| 863 |
+
# # add_new_eval,
|
| 864 |
+
# # inputs = [
|
| 865 |
+
# # input_file,
|
| 866 |
+
# # model_name_textbox,
|
| 867 |
+
# # revision_name_textbox,
|
| 868 |
+
# # model_link,
|
| 869 |
+
# # team_name,
|
| 870 |
+
# # contact_email,
|
| 871 |
+
# # release_time,
|
| 872 |
+
# # access_type,
|
| 873 |
+
# # model_resolution,
|
| 874 |
+
# # model_fps,
|
| 875 |
+
# # model_frame,
|
| 876 |
+
# # model_video_length,
|
| 877 |
+
# # model_checkpoint,
|
| 878 |
+
# # model_commit_id,
|
| 879 |
+
# # model_video_format
|
| 880 |
+
# # ],
|
| 881 |
+
# # outputs=[submit_button, submit_succ_button, fail_textbox]
|
| 882 |
+
# # )
|
| 883 |
|
| 884 |
+
# with gr.TabItem("π [I2V]Submit here! ", elem_id="mvbench-i2v-tab-table", id=7):
|
| 885 |
+
# gr.Markdown(LEADERBORAD_INTRODUCTION, elem_classes="markdown-text")
|
| 886 |
+
|
| 887 |
+
# with gr.Row():
|
| 888 |
+
# gr.Markdown(SUBMIT_INTRODUCTION, elem_classes="markdown-text")
|
| 889 |
+
|
| 890 |
+
# with gr.Row():
|
| 891 |
+
# gr.Markdown("# βοΈβ¨ Submit your i2v model evaluation json file here!", elem_classes="markdown-text")
|
| 892 |
+
|
| 893 |
+
# with gr.Row():
|
| 894 |
+
# gr.Markdown("Here is a required field", elem_classes="markdown-text")
|
| 895 |
+
# with gr.Row():
|
| 896 |
+
# with gr.Column():
|
| 897 |
+
# model_name_textbox_i2v = gr.Textbox(
|
| 898 |
+
# label="Model name", placeholder="Required field"
|
| 899 |
+
# )
|
| 900 |
+
# revision_name_textbox_i2v = gr.Textbox(
|
| 901 |
+
# label="Revision Model Name(Optional)", placeholder="If you need to update the previous results, please fill in this line"
|
| 902 |
+
# )
|
| 903 |
+
# access_type_i2v = gr.Dropdown(["Open Source", "Ready to Open Source", "API", "Close"], label="Please select the way user can access your model. You can update the content by revision_name, or contact the VBench Team.")
|
| 904 |
+
|
| 905 |
+
|
| 906 |
+
# with gr.Column():
|
| 907 |
+
# model_link_i2v = gr.Textbox(
|
| 908 |
+
# label="Project Page/Paper Link/Github/HuggingFace Repo", placeholder="Required field. If filling in the wrong information, your results may be removed."
|
| 909 |
+
# )
|
| 910 |
+
# team_name_i2v = gr.Textbox(
|
| 911 |
+
# label="Your Team Name(If left blank, it will be user upload)", placeholder="User Upload"
|
| 912 |
+
# )
|
| 913 |
+
# contact_email_i2v = gr.Textbox(
|
| 914 |
+
# label="E-Mail(Will not be displayed)", placeholder="Required field"
|
| 915 |
+
# )
|
| 916 |
+
# with gr.Row():
|
| 917 |
+
# gr.Markdown("The following is optional and will be synced to [GitHub] (https://github.com/Vchitect/VBench/tree/master/sampled_videos#what-are-the-details-of-the-video-generation-models)", elem_classes="markdown-text")
|
| 918 |
+
# with gr.Row():
|
| 919 |
+
# release_time_i2v = gr.Textbox(label="Time of Publish", placeholder="1970-01-01")
|
| 920 |
+
# model_resolution_i2v = gr.Textbox(label="resolution", placeholder="Width x Height")
|
| 921 |
+
# model_fps_i2v = gr.Textbox(label="model fps", placeholder="FPS(int)")
|
| 922 |
+
# model_frame_i2v = gr.Textbox(label="model frame count", placeholder="INT")
|
| 923 |
+
# model_video_length_i2v = gr.Textbox(label="model video length", placeholder="float(2.0)")
|
| 924 |
+
# model_checkpoint_i2v = gr.Textbox(label="model checkpoint", placeholder="optional")
|
| 925 |
+
# model_commit_id_i2v = gr.Textbox(label="github commit id", placeholder='main')
|
| 926 |
+
# model_video_format_i2v = gr.Textbox(label="pipeline format", placeholder='mp4')
|
| 927 |
+
# with gr.Column():
|
| 928 |
+
# input_file_i2v = gr.components.File(label = "Click to Upload a ZIP File", file_count="single", type='binary')
|
| 929 |
+
# submit_button_i2v = gr.Button("Submit Eval")
|
| 930 |
+
# submit_succ_button_i2v = gr.Markdown("Submit Success! Please press refresh and retfurn to LeaderBoard!", visible=False)
|
| 931 |
+
# fail_textbox_i2v = gr.Markdown('<span style="color:red;">Please ensure that the `Model Name`, `Project Page`, and `Email` are filled in correctly.</span>', elem_classes="markdown-text",visible=False)
|
| 932 |
|
| 933 |
|
| 934 |
+
# submission_result_i2v = gr.Markdown()
|
| 935 |
+
# # submit_button_i2v.click(
|
| 936 |
+
# # add_new_eval_i2v,
|
| 937 |
+
# # inputs = [
|
| 938 |
+
# # input_file_i2v,
|
| 939 |
+
# # model_name_textbox_i2v,
|
| 940 |
+
# # revision_name_textbox_i2v,
|
| 941 |
+
# # model_link_i2v,
|
| 942 |
+
# # team_name_i2v,
|
| 943 |
+
# # contact_email_i2v,
|
| 944 |
+
# # release_time_i2v,
|
| 945 |
+
# # access_type_i2v,
|
| 946 |
+
# # model_resolution_i2v,
|
| 947 |
+
# # model_fps_i2v,
|
| 948 |
+
# # model_frame_i2v,
|
| 949 |
+
# # model_video_length_i2v,
|
| 950 |
+
# # model_checkpoint_i2v,
|
| 951 |
+
# # model_commit_id_i2v,
|
| 952 |
+
# # model_video_format_i2v
|
| 953 |
+
# # ],
|
| 954 |
+
# # outputs=[submit_button_i2v, submit_succ_button_i2v, fail_textbox_i2v]
|
| 955 |
+
# # )
|
| 956 |
+
|
| 957 |
+
|
| 958 |
+
|
| 959 |
+
# def refresh_data():
|
| 960 |
+
# value1 = get_baseline_df()
|
| 961 |
+
# return value1
|
| 962 |
+
|
| 963 |
+
# with gr.Row():
|
| 964 |
+
# data_run = gr.Button("Refresh")
|
| 965 |
+
# data_run.click(on_filter_model_size_method_change, inputs=[checkbox_group], outputs=data_component)
|
| 966 |
|
| 967 |
|
| 968 |
block.launch()
|