Spaces:
Runtime error
Runtime error
| import gradio as gr | |
| from pages.arena import create_arena | |
| from pages.summarization_example import create_summarization_interface | |
| from pages.leaderboard import create_leaderboard | |
| def welcome_message(): | |
| return """ | |
| ## Summarization Projects Demo :rocket: | |
| This application is for **internal use** and is designed to facilitate **fast prototyping** and **experimentation.** | |
| Select a demo from the sidebar below to begin experimentation. | |
| """ | |
| with gr.Blocks() as demo: | |
| with gr.Column(scale=4): | |
| content = content = gr.Blocks( | |
| gr.Markdown( | |
| welcome_message() | |
| ) | |
| ) | |
| with gr.Tabs() as tabs: | |
| with gr.TabItem("Streaming"): | |
| create_arena() | |
| with gr.TabItem("Summarization"): | |
| create_summarization_interface() | |
| with gr.TabItem("Leaderboard"): | |
| create_leaderboard() | |
| if __name__ == "__main__": | |
| demo.launch() | |