Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -844,7 +844,7 @@ function refresh() {
|
|
844 |
}
|
845 |
'''
|
846 |
|
847 |
-
trans_textbox = gr.Textbox('Transcript',lines=10,max_lines=19, autoscroll = False)
|
848 |
summ_textbox = gr.Textbox('Summary',lines=10,max_lines=19, autoscroll = False)
|
849 |
# recc_textbox1 = gr.Textbox(label="SCDF", max_lines=8, show_copy_button=True)
|
850 |
# recc_textbox2 = gr.Textbox(label="LTA", max_lines=8, show_copy_button=True)
|
@@ -881,7 +881,7 @@ with gr.Blocks(js=js) as demo:
|
|
881 |
with gr.Tab("Summarisation from Audio") as tab2:
|
882 |
trans2summary = gr.Interface(
|
883 |
fn=get_summary_from_transcript,
|
884 |
-
inputs=trans_textbox
|
885 |
outputs=summ_textbox,
|
886 |
allow_flagging = 'never'
|
887 |
)
|
|
|
844 |
}
|
845 |
'''
|
846 |
|
847 |
+
trans_textbox = gr.Textbox('Transcript',lines=10,max_lines=19, autoscroll = False, label = 'Edit road names as required (e.g. Lawney --> Lornie)', interactive = True)
|
848 |
summ_textbox = gr.Textbox('Summary',lines=10,max_lines=19, autoscroll = False)
|
849 |
# recc_textbox1 = gr.Textbox(label="SCDF", max_lines=8, show_copy_button=True)
|
850 |
# recc_textbox2 = gr.Textbox(label="LTA", max_lines=8, show_copy_button=True)
|
|
|
881 |
with gr.Tab("Summarisation from Audio") as tab2:
|
882 |
trans2summary = gr.Interface(
|
883 |
fn=get_summary_from_transcript,
|
884 |
+
inputs=trans_textbox,
|
885 |
outputs=summ_textbox,
|
886 |
allow_flagging = 'never'
|
887 |
)
|