Spaces:
Runtime error
Runtime error
as-cle-bert
commited on
Commit
•
0aee4ec
1
Parent(s):
79cb6aa
Update space.py
Browse files
space.py
CHANGED
@@ -1,12 +1,11 @@
|
|
1 |
import gradio as gr
|
2 |
-
import huggingface_hub
|
3 |
from openai import OpenAI
|
4 |
|
5 |
TOKEN = os.getenv("HF_TOKEN")
|
6 |
|
7 |
client = OpenAI(
|
8 |
base_url="https://api-inference.huggingface.co/v1/",
|
9 |
-
api_key=
|
10 |
)
|
11 |
|
12 |
def respond(
|
|
|
1 |
import gradio as gr
|
|
|
2 |
from openai import OpenAI
|
3 |
|
4 |
TOKEN = os.getenv("HF_TOKEN")
|
5 |
|
6 |
client = OpenAI(
|
7 |
base_url="https://api-inference.huggingface.co/v1/",
|
8 |
+
api_key=TOKEN,
|
9 |
)
|
10 |
|
11 |
def respond(
|