sudhir2016 commited on
Commit
63c7f24
·
1 Parent(s): 3e1059d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -1,9 +1,6 @@
1
  import gradio as gr
2
  from langchain.vectorstores import Chroma
3
- docsearch = Chroma.from_texts(texts, embeddings,persist_directory=persist_directory)
4
- def answer(question):
5
- out=chain.run(question)
6
- return out
7
  demo = gr.Interface(fn=answer, inputs='text',outputs='text',examples=[['What is the capital of India ?']])
8
  demo.launch()
9
  from langchain.docstore.document import Document
 
1
  import gradio as gr
2
  from langchain.vectorstores import Chroma
3
+ docsearch = Chroma.from_texts(texts, embeddings)
 
 
 
4
  demo = gr.Interface(fn=answer, inputs='text',outputs='text',examples=[['What is the capital of India ?']])
5
  demo.launch()
6
  from langchain.docstore.document import Document