Matt09Miao commited on
Commit
577ffe8
·
verified ·
1 Parent(s): 3319852

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -8
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("Select an Image...")
8
 
9
- if uploaded_file is not None:
10
- print(uploaded_file)
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...')