cloud-sean commited on
Commit
9e26908
·
1 Parent(s): c2841e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -14,7 +14,7 @@ from langchain.llms import AzureOpenAI
14
  openai.api_key = "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"
15
  # openai.api_version = "2023-03-15-preview"
16
 
17
- llm = ChatOpenAI()
18
 
19
  class Capturing(list):
20
  def __enter__(self):
@@ -27,6 +27,7 @@ class Capturing(list):
27
  sys.stdout = self._stdout
28
 
29
  def answer_question(input_file, question):
 
30
  agent = create_csv_agent(llm, input_file.name, verbose=True)
31
  question = question
32
  with Capturing() as printed_text:
 
14
  openai.api_key = "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"
15
  # openai.api_version = "2023-03-15-preview"
16
 
17
+
18
 
19
  class Capturing(list):
20
  def __enter__(self):
 
27
  sys.stdout = self._stdout
28
 
29
  def answer_question(input_file, question):
30
+ llm = ChatOpenAI()
31
  agent = create_csv_agent(llm, input_file.name, verbose=True)
32
  question = question
33
  with Capturing() as printed_text: