Gita_Qdrant / app.py
sudhir2016's picture
Update app.py
e8854c7
raw
history blame
308 Bytes
import gradio as gr
from langchain.document_loaders import TextLoader
g=open('test.txt')
g1=g.read()
loader = TextLoader('test.txt')
documents = loader.load()
def answer(query):
out=g1
return out
demo = gr.Interface(fn=answer, inputs='text',outputs='text',examples=[['song celestial']])
demo.launch()