Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
import openai
|
3 |
-
|
4 |
-
openai.api_key = "
|
5 |
|
6 |
def ask_codette(prompt, consent, dynamic_rec):
|
7 |
if not consent:
|
|
|
1 |
import gradio as gr
|
2 |
import openai
|
3 |
+
import os
|
4 |
+
openai.api_key = os.getenv("OPENAI_API_KEY")
|
5 |
|
6 |
def ask_codette(prompt, consent, dynamic_rec):
|
7 |
if not consent:
|