legolasyiu commited on
Commit
a75efd2
1 Parent(s): 61bc678

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -1,10 +1,12 @@
1
  import gradio as gr
2
  from huggingface_hub import InferenceClient
 
 
3
 
4
  """
5
  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
6
  """
7
- client = InferenceClient("EpistemeAI2/Fireball-Alpaca-Llama3.1.08-8B-C-R1-KTO-Relection", token=HF_Token)
8
 
9
 
10
  def respond(
 
1
  import gradio as gr
2
  from huggingface_hub import InferenceClient
3
+ import os
4
+ token=os.getenv('HF-token')
5
 
6
  """
7
  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
8
  """
9
+ client = InferenceClient("EpistemeAI2/Fireball-Alpaca-Llama3.1.08-8B-C-R1-KTO-Relection", token=token)
10
 
11
 
12
  def respond(