itachi-ai commited on
Commit
f29ef77
·
verified ·
1 Parent(s): 80871cf
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -15,7 +15,7 @@ def embed_and_store(password, collection_name, file_type, file_fields, context,p
15
  file_fields = context
16
  vector_db = VectorDataBase(file_fields, collection_name, file_type, page_start=page_start)
17
  vector_db.embedding_with_loop()
18
- return "", ""
19
  else:
20
  raise Exception('Something went wrong')
21
  def update_interface(file_type):
@@ -28,8 +28,9 @@ with gr.Blocks() as demo:
28
  with gr.Tab('Personal Chat bot'):
29
  gr.Markdown("""
30
  <div align='center'>RAG Application with Open Source models</div>
31
-
32
- > You could ask anything about Me & Data Science. I hope it will find you well
 
33
  """)
34
  db_collection = gr.Dropdown(
35
  list(get_all_collections().values()), label="Select Collection for the retriever",
@@ -62,7 +63,7 @@ with gr.Blocks() as demo:
62
  file_type.change(update_interface, inputs=[file_type], outputs=[context, file_fields])
63
  gr.Markdown("""
64
  <div align='center'>It could be helpful for making RAG applications</div>
65
- MONGODB | LANGCHAIN | HUGGINGFACE
66
  """)
67
 
68
  demo.launch(share=True)
 
15
  file_fields = context
16
  vector_db = VectorDataBase(file_fields, collection_name, file_type, page_start=page_start)
17
  vector_db.embedding_with_loop()
18
+ return file_fields,cotext
19
  else:
20
  raise Exception('Something went wrong')
21
  def update_interface(file_type):
 
28
  with gr.Tab('Personal Chat bot'):
29
  gr.Markdown("""
30
  <div align='center'>RAG Application with Open Source models</div>
31
+ <div align='center'>
32
+ > You could ask anything about Me & Data Science. I hope it will find you well
33
+ </div>
34
  """)
35
  db_collection = gr.Dropdown(
36
  list(get_all_collections().values()), label="Select Collection for the retriever",
 
63
  file_type.change(update_interface, inputs=[file_type], outputs=[context, file_fields])
64
  gr.Markdown("""
65
  <div align='center'>It could be helpful for making RAG applications</div>
66
+ <div align='center'> MONGODB | LANGCHAIN | HUGGINGFACE</div>
67
  """)
68
 
69
  demo.launch(share=True)