import streamlit as st from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline st.title("My first Streamlit app") st.text("This is a simple app that greets the user.") pipe = pipeline("text-generation", model="TurkuNLP/gpt3-finnish-3B") result = pipe("Calculate 28% of 33", max_new_tokens=50) if result: st.text(result)