Spaces:
Build error
Build error
init!
Browse files
app.py
CHANGED
|
@@ -1,8 +1,9 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import openai
|
|
|
|
| 3 |
|
| 4 |
# Replace 'your_openai_api_key_here' with your actual OpenAI API key.
|
| 5 |
-
openai.api_key = ("OPEN_AI_KEY")
|
| 6 |
|
| 7 |
def generate_response(question):
|
| 8 |
try:
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import openai
|
| 3 |
+
import os
|
| 4 |
|
| 5 |
# Replace 'your_openai_api_key_here' with your actual OpenAI API key.
|
| 6 |
+
openai.api_key = os.getenv("OPEN_AI_KEY")
|
| 7 |
|
| 8 |
def generate_response(question):
|
| 9 |
try:
|