Mishal23 commited on
Commit
d2b74c9
1 Parent(s): cff4f1a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -6,7 +6,8 @@ MODEL_ID = "Mishal23/fine-tuned-dialoGPT-crm-chatbot" # Your model ID
6
 
7
  # Function to generate a response from the chatbot using the Hugging Face API
8
  def generate_response(prompt):
9
- headers = {"Authorization": f"Bearer {st.secrets['project01']}"} # Using your token name
 
10
  payload = {"inputs": prompt}
11
 
12
  try:
 
6
 
7
  # Function to generate a response from the chatbot using the Hugging Face API
8
  def generate_response(prompt):
9
+ # Use the secret token safely
10
+ headers = {"Authorization": f"Bearer {st.secrets['project01']['hf_token']}"}
11
  payload = {"inputs": prompt}
12
 
13
  try: