Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,15 +4,10 @@ from transformers import pipeline
|
|
4 |
st.set_page_config(page_title="Generate Your Tweet and Toxicity Analysis")
|
5 |
|
6 |
st.header("Please input your first word of a Tweet :performing_arts:")
|
7 |
-
input = st.text_input("
|
8 |
|
9 |
-
if
|
10 |
-
print(
|
11 |
-
bytes_data = uploaded_file.getvalue()
|
12 |
-
with open(uploaded_file.name, "wb") as file:
|
13 |
-
file.write(bytes_data)
|
14 |
-
st.image(uploaded_file, caption="Uploaded Image",
|
15 |
-
use_column_width=True)
|
16 |
|
17 |
#Stage 1: Image to Text
|
18 |
st.text('Processing img2text...')
|
|
|
4 |
st.set_page_config(page_title="Generate Your Tweet and Toxicity Analysis")
|
5 |
|
6 |
st.header("Please input your first word of a Tweet :performing_arts:")
|
7 |
+
input = st.text_input("In put your first word...")
|
8 |
|
9 |
+
if input is not None:
|
10 |
+
print(Your word is welcome :slightly_smiling_face:)
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
#Stage 1: Image to Text
|
13 |
st.text('Processing img2text...')
|