MrAli813 commited on
Commit
bb75d0a
·
1 Parent(s): fd3317d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,7 +2,7 @@ import os
2
  import openai
3
  import gradio as gr
4
 
5
- openai.api_key = os.environ.getattribute("OPEN_AI_KEY")
6
  hf_api_key ="HF_API_Key"
7
 
8
  def predict(message, history):
 
2
  import openai
3
  import gradio as gr
4
 
5
+ openai.api_key = os.getenv('OPEN_AI_KEY')
6
  hf_api_key ="HF_API_Key"
7
 
8
  def predict(message, history):