File size: 426 Bytes
b10d5a0 3b9fa76 c6cc78a b10d5a0 c6cc78a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
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()
|