Hackathon / app.py
AnishKumbhar's picture
Update app.py
fee42aa
raw
history blame contribute delete
306 Bytes
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"])