kz209 commited on
Commit
5a4b599
1 Parent(s): 60e06f7

update default playground example value

Browse files
Files changed (2) hide show
  1. app.py +3 -4
  2. pages/summarization_playground.py +1 -1
app.py CHANGED
@@ -7,12 +7,11 @@ from pages.batch_evaluation import create_batch_evaluation_interface
7
 
8
  def welcome_message():
9
  return """
10
- ## Summarization Projects Demo :rocket:
11
 
12
- This application is for **internal use** and is designed to facilitate **fast prototyping** and **experimentation.**
13
 
14
- Select a demo from the sidebar below to begin experimentation.
15
- """
16
 
17
  with gr.Blocks() as demo:
18
  with gr.Column(scale=4):
 
7
 
8
  def welcome_message():
9
  return """
10
+ ## Summarization Demo
11
 
12
+ This application is for **internal use** and is designed to facilitate **fast prototyping** and **experimentation.**
13
 
14
+ Select a demo from the sidebar below to begin experimentation."""
 
15
 
16
  with gr.Blocks() as demo:
17
  with gr.Column(scale=4):
pages/summarization_playground.py CHANGED
@@ -65,7 +65,7 @@ def create_summarization_interface():
65
  gr.Markdown("## This is a playground to test summarizations")
66
 
67
  with gr.Row():
68
- example_dropdown = gr.Dropdown(choices=list(examples.keys()), label="Choose an example")
69
  model_dropdown = gr.Dropdown(choices=Model.__model_list__, label="Choose a model", value=Model.__model_list__[0])
70
 
71
  Template_text = gr.Textbox(value="""Summarize the following dialogue""", label='Input Prompting Template', lines=8, placeholder='Input your prompts')
 
65
  gr.Markdown("## This is a playground to test summarizations")
66
 
67
  with gr.Row():
68
+ example_dropdown = gr.Dropdown(choices=list(examples.keys()), label="Choose an example", value=random_label)
69
  model_dropdown = gr.Dropdown(choices=Model.__model_list__, label="Choose a model", value=Model.__model_list__[0])
70
 
71
  Template_text = gr.Textbox(value="""Summarize the following dialogue""", label='Input Prompting Template', lines=8, placeholder='Input your prompts')