DSE_project_1 / app.py
DR-Rakshitha's picture
bug_fix_2
aa57920
raw
history blame contribute delete
571 Bytes
# 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)