File size: 329 Bytes
e967447
885fb2e
 
 
 
e967447
 
4be488b
e967447
 
 
bb775e5
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)