Thamizh / app.py
thiyagab
Changed to gradio
b10d5a0
raw
history blame
426 Bytes
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()