Spaces:
Sleeping

lalaru commited on
Commit
201102b
·
verified ·
1 Parent(s): b3237d9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,9 +1,10 @@
1
  import gradio as gr
2
  import requests
3
  import json
 
4
 
5
  # Hugging Face API details
6
- API_URL = "https://api-inference.huggingface.co/models/mistralai/Mistral-7B-Instruct-v0.2"
7
  HF_TOKEN = "YOUR_HUGGINGFACE_API_TOKEN" # put your HF token here
8
  headers = {"Authorization": f"Bearer {HF_TOKEN}"}
9
 
 
1
  import gradio as gr
2
  import requests
3
  import json
4
+ import os
5
 
6
  # Hugging Face API details
7
+ API_URL = os.getenv("HF_TOKEN")
8
  HF_TOKEN = "YOUR_HUGGINGFACE_API_TOKEN" # put your HF token here
9
  headers = {"Authorization": f"Bearer {HF_TOKEN}"}
10