hf_model / app.py
abaliyan's picture
Update app.py
4be488b verified
raw
history blame
329 Bytes
import streamlit as st
st.title("custom chatbot with HF model")
def get_response(input_text):
response = f"this is response for {input_text}"
return response
user_input = st.text_input("Enter your query here..")
if st.button("Get Response") and user_input:
answer = get_response(user_input)
st.write(answer)