Spaces:
Sleeping
Sleeping
Commit
·
c6a6b0b
1
Parent(s):
d617c4c
test title,description,examples
Browse files
app.py
CHANGED
@@ -1,7 +1,9 @@
|
|
1 |
# app.py
|
2 |
import gradio as gr # type: ignore
|
3 |
import openai # type: ignore
|
|
|
4 |
|
|
|
5 |
client = openai.OpenAI()
|
6 |
def respond(
|
7 |
message,
|
|
|
1 |
# app.py
|
2 |
import gradio as gr # type: ignore
|
3 |
import openai # type: ignore
|
4 |
+
import os
|
5 |
|
6 |
+
openai.api_key = os.getenv("OPENAI_API_KEY")
|
7 |
client = openai.OpenAI()
|
8 |
def respond(
|
9 |
message,
|