Docfile commited on
Commit
3d4c41f
·
1 Parent(s): 46d9df9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -17,7 +17,7 @@ from llama_index.llms import LangChainLLM
17
  from langchain_g4f import G4FLLM
18
 
19
  nest_asyncio.apply()
20
- """
21
  documents = SimpleDirectoryReader('data').load_data()
22
  model_kwargs = {'device': 'cpu'}
23
  encode_kwargs = {'normalize_embeddings': True}
@@ -25,7 +25,7 @@ embed_model = HuggingFaceInstructEmbeddings(
25
  model_name="hkunlp/instructor-large", model_kwargs=model_kwargs,
26
  encode_kwargs=encode_kwargs
27
  )
28
- """
29
  llm= LLM = G4FLLM(
30
  model=models.gpt_35_turbo,
31
  provider=Provider.FreeGpt,
 
17
  from langchain_g4f import G4FLLM
18
 
19
  nest_asyncio.apply()
20
+
21
  documents = SimpleDirectoryReader('data').load_data()
22
  model_kwargs = {'device': 'cpu'}
23
  encode_kwargs = {'normalize_embeddings': True}
 
25
  model_name="hkunlp/instructor-large", model_kwargs=model_kwargs,
26
  encode_kwargs=encode_kwargs
27
  )
28
+
29
  llm= LLM = G4FLLM(
30
  model=models.gpt_35_turbo,
31
  provider=Provider.FreeGpt,