loocorez commited on
Commit
fdfc41e
·
verified ·
1 Parent(s): 5983cf2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,8 +1,8 @@
1
  import gradio as gr
2
  from huggingface_hub import InferenceClient
3
 
4
- # Use Inference API instead of loading model locally
5
- client = InferenceClient("loocorez/reverse-text-warmup")
6
 
7
  def reverse_text(input_text):
8
  try:
 
1
  import gradio as gr
2
  from huggingface_hub import InferenceClient
3
 
4
+ token = os.getenv("HF_TOKEN")
5
+ client = InferenceClient("loocorez/reverse-text-warmup", token=token)
6
 
7
  def reverse_text(input_text):
8
  try: