mayurasandakalum commited on
Commit
11963fc
·
1 Parent(s): bc003b1

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -4
main.py CHANGED
@@ -8,7 +8,7 @@ app = Flask(__name__)
8
 
9
  def get_openai_response(question):
10
  llm = OpenAI(
11
- openai_api_key=app.config['OPENAI_API_KEY'],
12
  model_name="text-davinci-003",
13
  temperature=0.5
14
  )
@@ -26,7 +26,7 @@ def index():
26
  return render_template('index.html')
27
 
28
 
29
- if __name__ == '__main__':
30
  # Replace with your OpenAI API key
31
- app.config['OPENAI_API_KEY'] = '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'
32
- app.run(debug=True)
 
8
 
9
  def get_openai_response(question):
10
  llm = OpenAI(
11
+ openai_api_key='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',
12
  model_name="text-davinci-003",
13
  temperature=0.5
14
  )
 
26
  return render_template('index.html')
27
 
28
 
29
+ #if __name__ == '__main__':
30
  # Replace with your OpenAI API key
31
+ # app.config['OPENAI_API_KEY'] = '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'
32
+ # app.run(debug=True)