THED1 commited on
Commit
2efaf14
·
verified ·
1 Parent(s): 59917bd

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -47,8 +47,14 @@ TOOLS = {
47
  # ============================================
48
 
49
  from huggingface_hub import InferenceClient
 
50
 
51
- client = InferenceClient(model="Qwen/Qwen2.5-72B-Instruct")
 
 
 
 
 
52
 
53
  SYSTEM = """You are AI7, a helpful AI assistant.
54
 
 
47
  # ============================================
48
 
49
  from huggingface_hub import InferenceClient
50
+ import os
51
 
52
+ # Get token from environment or use free tier
53
+ HF_TOKEN = os.environ.get("HF_TOKEN")
54
+ client = InferenceClient(
55
+ model="Qwen/Qwen2.5-72B-Instruct",
56
+ token=HF_TOKEN
57
+ )
58
 
59
  SYSTEM = """You are AI7, a helpful AI assistant.
60