Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,10 +38,10 @@ def start_fn(article_input: str, reduce_option="mean", model_type='GPT-2') -> st
|
|
| 38 |
|
| 39 |
|
| 40 |
face = gr.Interface(fn=start_fn,
|
| 41 |
-
inputs=[gr.
|
| 42 |
-
gr.
|
| 43 |
-
gr.
|
| 44 |
-
outputs=gr.
|
| 45 |
'Article'),
|
| 46 |
title=title,
|
| 47 |
description=description, )
|
|
|
|
| 38 |
|
| 39 |
|
| 40 |
face = gr.Interface(fn=start_fn,
|
| 41 |
+
inputs=[gr.Textbox(lines=2, placeholder="Paste article here.", label='Input Article'),
|
| 42 |
+
gr.Dropdown(NN_OPTIONS_LIST, label="Summarize mode"),
|
| 43 |
+
gr.Dropdown(NN_LIST, label="Selected NN")],
|
| 44 |
+
outputs=gr.Textbox(lines=2, placeholder="Summarized article here.", label='Summarized '
|
| 45 |
'Article'),
|
| 46 |
title=title,
|
| 47 |
description=description, )
|