import streamlit as st | |
from transformers import pipeline | |
def main(): | |
st.title("Hello Streamlit App") | |
st.write("Welcome to the Hello Streamlit app!") | |
name = st.text_input("Enter your name:") | |
if st.button("Greet"): | |
st.write(f"Hello, {name}! Nice to meet you!") | |
pipe = pipeline("text-classification") | |
pipe("This restaurant is awesome") | |
if __name__ == "__main__": | |
main() |