Rahatara commited on
Commit
4e8485b
1 Parent(s): bed15e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -42,8 +42,7 @@ class MyApp:
42
  D, I = self.index.search(np.array(query_embedding), k)
43
  results = [self.documents[i] for i in I[0]]
44
  return results if results else [{"content": "No relevant documents found."}]
45
-
46
- import gradio as gr
47
  from typing import List, Tuple
48
 
49
  app = MyApp()
@@ -91,4 +90,4 @@ with gr.Blocks() as demo:
91
  submit_btn = gr.Button("Submit")
92
  submit_btn.click(respond, inputs=[query_input, chatbot], outputs=[chatbot, query_input])
93
 
94
- demo.launch()
 
42
  D, I = self.index.search(np.array(query_embedding), k)
43
  results = [self.documents[i] for i in I[0]]
44
  return results if results else [{"content": "No relevant documents found."}]
45
+ import gradio as gr
 
46
  from typing import List, Tuple
47
 
48
  app = MyApp()
 
90
  submit_btn = gr.Button("Submit")
91
  submit_btn.click(respond, inputs=[query_input, chatbot], outputs=[chatbot, query_input])
92
 
93
+ demo.launch()