streamlit1 / app.py
Asterix
a
ecd2e32
raw
history blame contribute delete
487 Bytes
import streamlit as st
from llmware.models import ModelCatalog
st.title("🎈 My new app")
st.write(
"Let's start building! For help and inspiration, head over to [docs.streamlit.io](https://docs.streamlit.io/)."
)
model = ModelCatalog().load_model("bling-answer-tool")
model = ModelCatalog().load_model("bling-answer-tool")
prompt = "My son is 21 years old.\nHow old is my son?"
response = model.inference(prompt)
st.write("\nPrompt: ", prompt)
st.write("\nResponse: ", response)