Spaces:
Build error
Build error
Commit ·
3e2293c
1
Parent(s): dfa93b1
Upload folder using huggingface_hub
Browse files
test3.py
CHANGED
|
@@ -1,8 +1,9 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import openai
|
|
|
|
| 3 |
|
| 4 |
# Set your API key
|
| 5 |
-
api_key =
|
| 6 |
openai.api_key = api_key
|
| 7 |
|
| 8 |
def chat(message, history):
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import openai
|
| 3 |
+
import os
|
| 4 |
|
| 5 |
# Set your API key
|
| 6 |
+
api_key = os.environ.get("api")
|
| 7 |
openai.api_key = api_key
|
| 8 |
|
| 9 |
def chat(message, history):
|