nurindahpratiwi
commited on
Commit
·
1c19d29
1
Parent(s):
d90a1ae
fix line
Browse files
app.py
CHANGED
@@ -5,6 +5,11 @@ from transformers import T5Tokenizer, T5ForConditionalGeneration
|
|
5 |
from transformers import pipeline
|
6 |
import torch
|
7 |
import base64
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
custom_html = """
|
10 |
<div class="banner">
|
@@ -24,7 +29,7 @@ custom_html = """
|
|
24 |
</style>
|
25 |
"""
|
26 |
# Display the custom HTML
|
27 |
-
st.components.v1.html(custom_html)
|
28 |
|
29 |
|
30 |
# Model and tokenizer
|
|
|
5 |
from transformers import pipeline
|
6 |
import torch
|
7 |
import base64
|
8 |
+
from PIL import Image
|
9 |
+
|
10 |
+
image = Image.open('https://huggingface.co/spaces/wiwaaw/summary/resolve/main/banner.png')
|
11 |
+
|
12 |
+
st.image(image)
|
13 |
|
14 |
custom_html = """
|
15 |
<div class="banner">
|
|
|
29 |
</style>
|
30 |
"""
|
31 |
# Display the custom HTML
|
32 |
+
#st.components.v1.html(custom_html)
|
33 |
|
34 |
|
35 |
# Model and tokenizer
|