Spaces:
Runtime error
Runtime error
Farhan1572
commited on
Commit
•
35244e7
1
Parent(s):
99b3c08
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
from openai import OpenAI
|
|
|
|
|
|
|
3 |
|
4 |
-
api_key =
|
5 |
|
6 |
|
7 |
client = OpenAI(api_key = api_key)
|
|
|
1 |
import gradio as gr
|
2 |
from openai import OpenAI
|
3 |
+
import os
|
4 |
+
|
5 |
+
api_key = os.getenv("OPENAI_API_KEY")
|
6 |
|
|
|
7 |
|
8 |
|
9 |
client = OpenAI(api_key = api_key)
|