Aomsin commited on
Commit
55ab5d1
·
1 Parent(s): a4ce4e0

Delete appy.py

Browse files
Files changed (1) hide show
  1. appy.py +0 -17
appy.py DELETED
@@ -1,17 +0,0 @@
1
- import streamlit as st
2
- from transformers import pipeline
3
-
4
- classifier = pipeline("google/vit-base-patch16-224", model="google/vit-base-patch16-224")
5
- def main():
6
- st.title("Yelp review")
7
-
8
- with st.form("text_field"):
9
- text = st.text_area('enter some text:')
10
- # clicked==True only when the button is clicked
11
- clicked = st.form_submit_button("Submit")
12
- if clicked:
13
- results = classifier([text])
14
- st.json(results)
15
-
16
- if __name__ == "__main__":
17
- main()