AhmedEwis commited on
Commit
6a7085b
1 Parent(s): df0f591

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -9
app.py CHANGED
@@ -51,15 +51,7 @@ def construct_index(directory_path):
51
 
52
  return index
53
 
54
- def ask_ai():
55
- index = GPTSimpleVectorIndex.load_from_disk('index.json')
56
- while True:
57
- query = input("What do you want to ask? ")
58
- response = index.query(query, response_mode="compact")
59
- display(Markdown(f"Response: <b>{response.response}</b>")
60
-
61
-
62
- construct_index("context_data/data")
63
 
64
  def ask_ai(query):
65
  index = GPTSimpleVectorIndex.load_from_disk('index.json')
 
51
 
52
  return index
53
 
54
+ #construct_index("context_data/data")
 
 
 
 
 
 
 
 
55
 
56
  def ask_ai(query):
57
  index = GPTSimpleVectorIndex.load_from_disk('index.json')