as-cle-bert commited on
Commit
0aee4ec
1 Parent(s): 79cb6aa

Update space.py

Browse files
Files changed (1) hide show
  1. space.py +1 -2
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=huggingface_hub.get_token(),
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(