bezzam HF Staff commited on
Commit
03ffaa2
·
verified ·
1 Parent(s): 7e86d1e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -1,10 +1,10 @@
1
  import gradio as gr
2
  from huggingface_hub import InferenceClient
3
 
4
- ### NOTE: To use a token that bills to LauzHack cannot use OAuth tokens!
5
- # import os
6
- # HF_TOKEN = os.environ["HF_TOKEN"]
7
- # client = InferenceClient(token=HF_TOKEN, model="openai/gpt-oss-20b", bill_to="LauzHack")
8
 
9
 
10
  def respond(
@@ -19,8 +19,8 @@ def respond(
19
  """
20
  For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
21
  """
22
- ### NOTE: `bill_to` cannot be used here as this is an OAuth tokens through logging in
23
- client = InferenceClient(token=hf_token.token, model="openai/gpt-oss-20b") # Bills to personal account
24
 
25
  messages = [{"role": "system", "content": system_message}]
26
 
 
1
  import gradio as gr
2
  from huggingface_hub import InferenceClient
3
 
4
+ ## NOTE: To use a token that bills to LauzHack cannot use OAuth tokens!
5
+ import os
6
+ HF_TOKEN = os.environ["HF_TOKEN"]
7
+ client = InferenceClient(token=HF_TOKEN, model="openai/gpt-oss-20b", bill_to="LauzHack")
8
 
9
 
10
  def respond(
 
19
  """
20
  For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
21
  """
22
+ # ### NOTE: `bill_to` cannot be used here as this is an OAuth tokens through logging in
23
+ # client = InferenceClient(token=hf_token.token, model="openai/gpt-oss-20b") # Bills to personal account
24
 
25
  messages = [{"role": "system", "content": system_message}]
26