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