Hrushi02 commited on
Commit
f16550b
·
verified ·
1 Parent(s): 9c4c9bc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -1,5 +1,8 @@
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
@@ -69,7 +72,7 @@ import torch
69
  import os
70
 
71
  # Set Hugging Face token
72
- os.environ["HF_TOKEN"] = "your_token_here"
73
 
74
  base_model_name = "unsloth/qwen2.5-math-7b-bnb-4bit"
75
  peft_model_name = "Hrushi02/Root_Math"
 
1
  import gradio as gr
2
  from huggingface_hub import InferenceClient
3
+ import os
4
+ api_token = os.getenv("HUGGINGFACEHUB_API_TOKEN")
5
+
6
 
7
  """
8
  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
 
72
  import os
73
 
74
  # Set Hugging Face token
75
+ os.environ["HF_TOKEN"] = "your_token_her"
76
 
77
  base_model_name = "unsloth/qwen2.5-math-7b-bnb-4bit"
78
  peft_model_name = "Hrushi02/Root_Math"