File size: 306 Bytes
c69f349
 
d951fde
7a47212
a07b464
7a47212
a07b464
7a47212
fee42aa
c525d91
fee42aa
c525d91
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import streamlit as st
from transformers import pipeline

pipeline = pipeline(task="conversational", model="lmsys/fastchat-t5-3b-v1.0")

st.title("Conversational AI with FastChat")

query = st.text_input("Enter your query:")

response = pipeline(query)

st.subheader("Response:")
st.write(response["text"])