RamV commited on
Commit
5257812
·
1 Parent(s): d8286f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ import gradio as gr
4
 
5
  # Set up OpenAI API credentials
6
  api_key = os.environ.get("OPENAI_API_KEY")
7
- client = Client(api_key)
8
 
9
  # Define a function to generate a response to user input
10
  def generate_response(user_input):
 
4
 
5
  # Set up OpenAI API credentials
6
  api_key = os.environ.get("OPENAI_API_KEY")
7
+ client = Client(api_key=api_key) # Update the initialization here
8
 
9
  # Define a function to generate a response to user input
10
  def generate_response(user_input):