MadsGalsgaard commited on
Commit
a1d16cc
·
verified ·
1 Parent(s): 6c757bd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -61,14 +61,14 @@
61
  # demo.launch()
62
 
63
 
64
-
65
  import gradio as gr
66
  from huggingface_hub import InferenceClient
67
 
68
  # Initialize the Hugging Face Inference Client
69
  client = InferenceClient(
70
  "meta-llama/Meta-Llama-3.1-8B-Instruct",
71
- # token= # Replace with your actual token
72
  )
73
 
74
  # Define a function to handle the chat input and get a response from the model
 
61
  # demo.launch()
62
 
63
 
64
+ import os
65
  import gradio as gr
66
  from huggingface_hub import InferenceClient
67
 
68
  # Initialize the Hugging Face Inference Client
69
  client = InferenceClient(
70
  "meta-llama/Meta-Llama-3.1-8B-Instruct",
71
+ token= os.getenv("HF_API_TOKEN"),# Replace with your actual token
72
  )
73
 
74
  # Define a function to handle the chat input and get a response from the model