Asterix commited on
Commit
b3e008f
β€’
1 Parent(s): b86d206
Files changed (2) hide show
  1. requirements.txt +2 -0
  2. streamlit_app.py +12 -0
requirements.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ llmware==0.3.5
2
+ streamlit==1.38.0
streamlit_app.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ from llmware.models import ModelCatalog
3
+
4
+ st.title("🎈 My new app")
5
+ st.write(
6
+ "Let's start building! For help and inspiration, head over to [docs.streamlit.io](https://docs.streamlit.io/)."
7
+ )
8
+
9
+ model = ModelCatalog().load_model("bling-answer-tool")
10
+ response = model.inference("My son is 21 years old.\nHow old is my son?")
11
+
12
+ st.write("\nresponse: ", response)