Spaces:
Runtime error
Runtime error
dron3flyv3r
commited on
Commit
·
3146fe8
1
Parent(s):
dcbfa6b
Update output component to display Markdown in app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,7 @@ import os
|
|
3 |
from huggingface_hub import InferenceClient
|
4 |
from transformers import AutoTokenizer
|
5 |
|
|
|
6 |
HUGGINGFACE_API_KEY = os.environ["HUGGINGFACE_API_KEY"]
|
7 |
|
8 |
|
@@ -52,7 +53,7 @@ iface = gr.Interface(
|
|
52 |
),
|
53 |
gr.components.Checkbox(label="Add conclusion"),
|
54 |
],
|
55 |
-
outputs=gr.components.
|
56 |
)
|
57 |
|
58 |
iface.launch()
|
|
|
3 |
from huggingface_hub import InferenceClient
|
4 |
from transformers import AutoTokenizer
|
5 |
|
6 |
+
|
7 |
HUGGINGFACE_API_KEY = os.environ["HUGGINGFACE_API_KEY"]
|
8 |
|
9 |
|
|
|
53 |
),
|
54 |
gr.components.Checkbox(label="Add conclusion"),
|
55 |
],
|
56 |
+
outputs=gr.components.Markdown(label="Summary"),
|
57 |
)
|
58 |
|
59 |
iface.launch()
|