Chitti_ver1 / app.py
Pavankalyan's picture
Update app.py
a8cf832
raw
history blame
319 Bytes
import gradio as gr
import pandas as pd
from retrieval import *
df = pd.read_csv("Responses.csv")
text = list(df["text"].values)
def chitti(query):
re_table = search(query, text)
return re_table[0][0]
demo = gr.Interface(
fn=chitti,
inputs=["text"],
outputs=["text"],
)
demo.launch(share=True)