Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -147,7 +147,7 @@ The lecture should have around 20000 words.
|
|
147 |
""",
|
148 |
},
|
149 |
################# SUMMARY ##################
|
150 |
-
"
|
151 |
"intro": """Your task is to develop a summary of a paper. You never mention your name.
|
152 |
|
153 |
Don't worry about the formatting issues or any irrelevant information; your goal is to extract the key points, identify definitions, and interesting facts that need to be summarized.
|
@@ -470,7 +470,7 @@ with gr.Blocks(title="PDF to Audio", css="""
|
|
470 |
label="Instruction Template",
|
471 |
choices=list(INSTRUCTION_TEMPLATES.keys()),
|
472 |
value="podcast",
|
473 |
-
info="Select the instruction template to use.",
|
474 |
)
|
475 |
intro_instructions = gr.Textbox(
|
476 |
label="Intro Instructions",
|
@@ -489,19 +489,19 @@ with gr.Blocks(title="PDF to Audio", css="""
|
|
489 |
label="Scratch Pad Instructions",
|
490 |
lines=15,
|
491 |
value=INSTRUCTION_TEMPLATES["podcast"]["scratch_pad"],
|
492 |
-
info="Provide the scratch pad instructions for brainstorming dialogue content.",
|
493 |
)
|
494 |
prelude_dialog = gr.Textbox(
|
495 |
label="Prelude Dialog",
|
496 |
lines=5,
|
497 |
value=INSTRUCTION_TEMPLATES["podcast"]["prelude"],
|
498 |
-
info="Provide the prelude
|
499 |
)
|
500 |
podcast_dialog_instructions = gr.Textbox(
|
501 |
label="Podcast Dialog Instructions",
|
502 |
lines=20,
|
503 |
value=INSTRUCTION_TEMPLATES["podcast"]["dialog"],
|
504 |
-
info="Provide the instructions for generating the podcast dialogue.",
|
505 |
)
|
506 |
|
507 |
audio_output = gr.Audio(label="Audio", format="mp3")
|
|
|
147 |
""",
|
148 |
},
|
149 |
################# SUMMARY ##################
|
150 |
+
"summary": {
|
151 |
"intro": """Your task is to develop a summary of a paper. You never mention your name.
|
152 |
|
153 |
Don't worry about the formatting issues or any irrelevant information; your goal is to extract the key points, identify definitions, and interesting facts that need to be summarized.
|
|
|
470 |
label="Instruction Template",
|
471 |
choices=list(INSTRUCTION_TEMPLATES.keys()),
|
472 |
value="podcast",
|
473 |
+
info="Select the instruction template to use. You can also edit any of the fields for more tailored results.",
|
474 |
)
|
475 |
intro_instructions = gr.Textbox(
|
476 |
label="Intro Instructions",
|
|
|
489 |
label="Scratch Pad Instructions",
|
490 |
lines=15,
|
491 |
value=INSTRUCTION_TEMPLATES["podcast"]["scratch_pad"],
|
492 |
+
info="Provide the scratch pad instructions for brainstorming presentation/dialogue content.",
|
493 |
)
|
494 |
prelude_dialog = gr.Textbox(
|
495 |
label="Prelude Dialog",
|
496 |
lines=5,
|
497 |
value=INSTRUCTION_TEMPLATES["podcast"]["prelude"],
|
498 |
+
info="Provide the prelude instructions before the presentation/dialogue is developed.",
|
499 |
)
|
500 |
podcast_dialog_instructions = gr.Textbox(
|
501 |
label="Podcast Dialog Instructions",
|
502 |
lines=20,
|
503 |
value=INSTRUCTION_TEMPLATES["podcast"]["dialog"],
|
504 |
+
info="Provide the instructions for generating the presentation or podcast dialogue.",
|
505 |
)
|
506 |
|
507 |
audio_output = gr.Audio(label="Audio", format="mp3")
|