Spaces:
Sleeping
Sleeping
File size: 1,107 Bytes
de53991 9a1ab03 de53991 143b62d 0b41ab5 f9f4138 9a1ab03 de53991 b97cda3 9a1ab03 7c162ef 9a1ab03 5a4b599 9a1ab03 de53991 0b41ab5 143b62d f9f4138 5c4655e 143b62d de53991 0b41ab5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
import gradio as gr
from pages.arena import create_arena
from pages.summarization_playground import create_summarization_interface
from pages.leaderboard import create_leaderboard
from pages.batch_evaluation import create_batch_evaluation_interface
def welcome_message():
return """## Clinical Dialogue Summarization
This application is for **display** 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("Summarization"):
create_summarization_interface()
with gr.TabItem("Leaderboard"):
create_leaderboard()
with gr.TabItem("Batch_Evaluation"):
create_batch_evaluation_interface()
with gr.TabItem("Arena"):
create_arena()
if __name__ == "__main__":
demo.launch()
|