toursingapore
commited on
Commit
•
7b9da80
1
Parent(s):
e39f446
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,15 @@
|
|
1 |
import streamlit as st
|
|
|
2 |
|
3 |
-
|
4 |
-
st.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import streamlit as st
|
2 |
+
from transformers import pipeline
|
3 |
|
4 |
+
def main():
|
5 |
+
st.title("Hello Streamlit App")
|
6 |
+
st.write("Welcome to the Hello Streamlit app!")
|
7 |
+
name = st.text_input("Enter your name:")
|
8 |
+
if st.button("Greet"):
|
9 |
+
st.write(f"Hello, {name}! Nice to meet you!")
|
10 |
+
|
11 |
+
pipe = pipeline("text-classification")
|
12 |
+
pipe("This restaurant is awesome")
|
13 |
+
|
14 |
+
if __name__ == "__main__":
|
15 |
+
main()
|