Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import os
|
|
2 |
import openai
|
3 |
import gradio as gr
|
4 |
|
5 |
-
# Retrieve and verify the OpenAI API key from the environment variable
|
6 |
api_key = os.getenv('OPENAI_API_KEY')
|
7 |
if not api_key:
|
8 |
raise ValueError("OpenAI API key not found. Please set it in the environment variables.")
|
|
|
2 |
import openai
|
3 |
import gradio as gr
|
4 |
|
5 |
+
# Retrieve and verify the OpenAI API key from the environment variable.
|
6 |
api_key = os.getenv('OPENAI_API_KEY')
|
7 |
if not api_key:
|
8 |
raise ValueError("OpenAI API key not found. Please set it in the environment variables.")
|