Spaces:
Sleeping
Sleeping
kz209
commited on
Commit
β’
551f786
1
Parent(s):
5c4655e
update
Browse files
pages/summarization_playground.py
CHANGED
@@ -137,9 +137,9 @@ def create_summarization_interface():
|
|
137 |
model_dropdown = gr.Dropdown(choices=Model.__model_list__, label="Choose a model", value=Model.__model_list__[0])
|
138 |
|
139 |
gr.Markdown("<div style='border: 4px solid white; padding: 3px; border-radius: 5px;width:100px;padding-top: 0.5px;padding-bottom: 10px;'><h3>Prompt π₯</h3></center></div>")
|
140 |
-
Template_text = gr.Textbox(value="""Summarize the following dialogue""", label='Input Prompting Template', lines=
|
141 |
datapoint = random.choice(dataset)
|
142 |
-
input_text = gr.Textbox(label="Input Dialogue", lines=
|
143 |
submit_button = gr.Button("β¨ Submit β¨")
|
144 |
|
145 |
with gr.Row():
|
|
|
137 |
model_dropdown = gr.Dropdown(choices=Model.__model_list__, label="Choose a model", value=Model.__model_list__[0])
|
138 |
|
139 |
gr.Markdown("<div style='border: 4px solid white; padding: 3px; border-radius: 5px;width:100px;padding-top: 0.5px;padding-bottom: 10px;'><h3>Prompt π₯</h3></center></div>")
|
140 |
+
Template_text = gr.Textbox(value="""Summarize the following dialogue""", label='Input Prompting Template', lines=4, placeholder='Input your prompts')
|
141 |
datapoint = random.choice(dataset)
|
142 |
+
input_text = gr.Textbox(label="Input Dialogue", lines=7, placeholder="Enter text here...", value=datapoint['section_text'] + '\n\nDialogue:\n' + datapoint['dialogue'])
|
143 |
submit_button = gr.Button("β¨ Submit β¨")
|
144 |
|
145 |
with gr.Row():
|