Update app.py
Browse files
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):
|