5m4ck3r commited on
Commit
344f2f6
·
verified ·
1 Parent(s): 6fe3756

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,5 +1,6 @@
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
@@ -7,7 +8,7 @@ For more information on `huggingface_hub` Inference API support, please check th
7
 
8
  # client = InferenceClient("meta-llama/Llama-3.2-3B-Instruct")
9
  # client = InferenceClient("mistralai/Mistral-Small-24B-Instruct-2501")
10
- client = InferenceClient("mistralai/Mistral-7B-Instruct-v0.3")
11
  # client = InferenceClient("meta-llama/Llama-3.3-70B-Instruct")
12
  # client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
13
  # client = InferenceClient("nvidia/DeepSeek-R1-FP4")
 
1
  import gradio as gr
2
  from huggingface_hub import InferenceClient
3
+ import os
4
 
5
  """
6
  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("meta-llama/Llama-3.2-3B-Instruct")
10
  # client = InferenceClient("mistralai/Mistral-Small-24B-Instruct-2501")
11
+ client = InferenceClient("mistralai/Mistral-7B-Instruct-v0.3", token=os.environ['TOKEN'])
12
  # client = InferenceClient("meta-llama/Llama-3.3-70B-Instruct")
13
  # client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
14
  # client = InferenceClient("nvidia/DeepSeek-R1-FP4")