Ahmed-14 commited on
Commit
024e50f
·
1 Parent(s): a9d4731

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -16,12 +16,14 @@ from llama_index import SimpleDirectoryReader, GPTSimpleVectorIndex, LLMPredicto
16
  from langchain import OpenAI
17
 
18
 
19
- documents = SimpleDirectoryReader('GoChat/GoChat247Demo/Data').load_data()
20
-
21
-
 
22
  # Setup your LLM
23
 
24
 
 
25
  # define LLM
26
  llm_predictor = LLMPredictor(llm=OpenAI(temperature=0, model_name="text-davinci-003"))
27
 
@@ -130,4 +132,4 @@ with gr.Blocks() as demo:
130
 
131
 
132
  if __name__ == "__main__":
133
- demo.launch()
 
16
  from langchain import OpenAI
17
 
18
 
19
+ # documents = SimpleDirectoryReader('GoChat/GoChat247Demo/Data').load_data()
20
+ from datasets import load_dataset
21
+ doc = load_dataset("text", data_dir="https://huggingface.co/datasets/waelabou/Gochat247QA/tree/main")
22
+ print(doc)
23
  # Setup your LLM
24
 
25
 
26
+
27
  # define LLM
28
  llm_predictor = LLMPredictor(llm=OpenAI(temperature=0, model_name="text-davinci-003"))
29
 
 
132
 
133
 
134
  if __name__ == "__main__":
135
+ # demo.launch()