File size: 340 Bytes
b8a4e05 b9e7305 b8a4e05 b9e7305 |
1 2 3 4 5 6 7 8 9 10 |
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) |