import gradio as gd | |
import semanticsearch | |
# # x = st.slider('Select a value') | |
# x=st.text_input('Ask valluvar') | |
# # st.write(x, 'squared is', x * x) | |
# if (x): | |
# response=semanticsearch.find_similarities(x) | |
# st.markdown(response) | |
gd.Interface(semanticsearch.find_similarities,inputs=gd.Textbox(lines=1, max_lines=2, label="Ask Valluvar"),outputs=gd.Textbox(interactive=False,lines=10, label="Response")).launch() | |