patti-j commited on
Commit
1de6b92
1 Parent(s): 760a417

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -2,6 +2,8 @@
2
  import os
3
  import gradio as gr
4
  from llama_index import GPTVectorStoreIndex
 
 
5
  # from response import get_response
6
 
7
  openai_api_key = os.getenv('OPENAI_API_KEY')
@@ -12,7 +14,8 @@ class ChatWrapper:
12
  def __call__(
13
  self, inp: str, history: str, chain
14
  ):
15
-
 
16
  # Execute the chat functionality.
17
  output = chain({"question": inp, "chat_history": history})["answer"]
18
  history.append((inp, output))
 
2
  import os
3
  import gradio as gr
4
  from llama_index import GPTVectorStoreIndex
5
+ from query_data import get_chain
6
+
7
  # from response import get_response
8
 
9
  openai_api_key = os.getenv('OPENAI_API_KEY')
 
14
  def __call__(
15
  self, inp: str, history: str, chain
16
  ):
17
+
18
+
19
  # Execute the chat functionality.
20
  output = chain({"question": inp, "chat_history": history})["answer"]
21
  history.append((inp, output))