Spaces:
Running
Running
๐
Browse filesSigned-off-by: peter szemraj <peterszemraj@gmail.com>
app.py
CHANGED
@@ -226,9 +226,8 @@ if __name__ == "__main__":
|
|
226 |
label="Beam Search: # of Beams",
|
227 |
value=2,
|
228 |
)
|
229 |
-
|
230 |
with gr.Row():
|
231 |
-
gr.Markdown("Select an example, or ppload a file (`.txt` or `.pdf`)")
|
232 |
example_name = gr.Dropdown(
|
233 |
_examples,
|
234 |
label="Examples",
|
@@ -245,10 +244,11 @@ if __name__ == "__main__":
|
|
245 |
label="Input Text (for summarization)",
|
246 |
placeholder="Enter text to summarize, the text will be cleaned and truncated on Spaces. Narrative, academic (both papers and lecture transcription), and article text work well. May take a bit to generate depending on the input text :)",
|
247 |
)
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
|
|
252 |
|
253 |
with gr.Column():
|
254 |
gr.Markdown("## Generate Summary")
|
|
|
226 |
label="Beam Search: # of Beams",
|
227 |
value=2,
|
228 |
)
|
229 |
+
gr.Markdown("Select an example, or upload a file (`.txt` or `.pdf`)")
|
230 |
with gr.Row():
|
|
|
231 |
example_name = gr.Dropdown(
|
232 |
_examples,
|
233 |
label="Examples",
|
|
|
244 |
label="Input Text (for summarization)",
|
245 |
placeholder="Enter text to summarize, the text will be cleaned and truncated on Spaces. Narrative, academic (both papers and lecture transcription), and article text work well. May take a bit to generate depending on the input text :)",
|
246 |
)
|
247 |
+
with gr.Column(min_width=100, scale=0.5):
|
248 |
+
load_examples_button = gr.Button(
|
249 |
+
"Load Example",
|
250 |
+
)
|
251 |
+
load_file_button = gr.Button("Upload File")
|
252 |
|
253 |
with gr.Column():
|
254 |
gr.Markdown("## Generate Summary")
|