File size: 571 Bytes
8a04515
66f3100
8de024a
8a04515
 
 
8de024a
 
8a04515
8de024a
8a04515
8de024a
 
66f3100
8de024a
 
 
aa57920
8de024a
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# app.py
from gpt4all import GPT4All
import streamlit as st

# Load your machine learning model

model = GPT4All("wizardlm-13b-v1.1-superhot-8k.ggmlv3.q4_0.bin")
# model = joblib.load("model/your_model.pkl")

st.title("Machine Learning Web App")

# Input for user's phrase
user_input = st.text_input("Enter a phrase:")

if user_input:
    # Process the user input using your model when the user submits the form
    if st.button("Submit"):
        output = model.generate(user_input)
        st.write("You entered:", user_input)
        st.write("Model output:", output)