Blane187 commited on
Commit
dcbfe42
·
verified ·
1 Parent(s): 5024470

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -3,7 +3,7 @@ import gradio as gr
3
  import os
4
 
5
  # Set OpenAI API key from environment variable
6
- openai.api_key = os.getenv(OPENAI_API_KEY)
7
 
8
  # Define a function to interact with OpenAI's ChatGPT
9
  def chat_with_openai(input_text):
 
3
  import os
4
 
5
  # Set OpenAI API key from environment variable
6
+ openai.api_key = os.getenv("OPENAI_API_KEY")
7
 
8
  # Define a function to interact with OpenAI's ChatGPT
9
  def chat_with_openai(input_text):