Update app.py
Browse files
app.py
CHANGED
|
@@ -4,16 +4,16 @@ import streamlit as st
|
|
| 4 |
from transformers import pipeline
|
| 5 |
|
| 6 |
# Function to load Hugging Face models
|
| 7 |
-
def load_model(
|
| 8 |
-
return pipeline("
|
| 9 |
|
| 10 |
# Page 1: Welcome and Chatbot
|
| 11 |
def page_welcome():
|
| 12 |
st.title("Welcome to Your Virtual Therapist")
|
| 13 |
st.write("Feel free to chat with our virtual therapist!")
|
| 14 |
|
| 15 |
-
# Load
|
| 16 |
-
chatbot_model = load_model(
|
| 17 |
|
| 18 |
user_input = st.text_input("You: ")
|
| 19 |
if user_input:
|
|
|
|
| 4 |
from transformers import pipeline
|
| 5 |
|
| 6 |
# Function to load Hugging Face models
|
| 7 |
+
def load_model():
|
| 8 |
+
return pipeline("conversational", model="alpindale/goliath-120b")
|
| 9 |
|
| 10 |
# Page 1: Welcome and Chatbot
|
| 11 |
def page_welcome():
|
| 12 |
st.title("Welcome to Your Virtual Therapist")
|
| 13 |
st.write("Feel free to chat with our virtual therapist!")
|
| 14 |
|
| 15 |
+
# Load the provided Hugging Face chatbot model
|
| 16 |
+
chatbot_model = load_model()
|
| 17 |
|
| 18 |
user_input = st.text_input("You: ")
|
| 19 |
if user_input:
|