MaxLSB commited on
Commit
36942d4
·
verified ·
1 Parent(s): fc2aea6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -1,8 +1,10 @@
 
1
  import gradio as gr
2
  from huggingface_hub import InferenceClient
3
 
4
 
5
- client = InferenceClient("MaxLSB/LeCarnet-8M")
 
6
 
7
 
8
  def respond(
 
1
+ import os
2
  import gradio as gr
3
  from huggingface_hub import InferenceClient
4
 
5
 
6
+ hf_token = os.environ["HUGGINGFACEHUB_API_TOKEN"]
7
+ client = InferenceClient("MaxLSB/LeCarnet-8M", token=hf_token)
8
 
9
 
10
  def respond(