Spaces:
Sleeping
Sleeping
import gradio as gr | |
from pages.arena import create_arena | |
from pages.summarization_example import create_summarization_interface | |
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("Page 3"): | |
# page3() | |
if __name__ == "__main__": | |
demo.launch(server_port=7860) | |
#iface.launch() # launch the Gradio app | |