silvanocerza commited on
Commit
14b6e94
1 Parent(s): 0beed35

Update to latest Haystack

Browse files
Files changed (2) hide show
  1. main.py +1 -3
  2. requirements.txt +1 -1
main.py CHANGED
@@ -1,4 +1,3 @@
1
- import os
2
  import subprocess
3
  from pathlib import Path
4
  from typing import List, Tuple
@@ -145,8 +144,7 @@ def search(question: str) -> GeneratedAnswer:
145
  )
146
  prompt_builder = PromptBuilder(template)
147
 
148
- OPENAI_API_KEY = os.getenv("OPENAI_API_KEY", "")
149
- generator = OpenAIGenerator(api_key=OPENAI_API_KEY)
150
  answer_builder = AnswerBuilder()
151
 
152
  query_pipeline = Pipeline()
 
 
1
  import subprocess
2
  from pathlib import Path
3
  from typing import List, Tuple
 
144
  )
145
  prompt_builder = PromptBuilder(template)
146
 
147
+ generator = OpenAIGenerator()
 
148
  answer_builder = AnswerBuilder()
149
 
150
  query_pipeline = Pipeline()
requirements.txt CHANGED
@@ -1,4 +1,4 @@
1
- haystack-ai==2.0.0b5
2
  more_itertools
3
  langdetect
4
  streamlit==1.27.2
 
1
+ haystack-ai==2.3.0
2
  more_itertools
3
  langdetect
4
  streamlit==1.27.2