1yahoo commited on
Commit
0d7c367
·
verified ·
1 Parent(s): 42657b2

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -0
app.py ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ from huggingface_hub import InferenceClient
3
+
4
+ client = InferenceClient(
5
+ api_key=os.environ["HF_TOKEN"],
6
+ )
7
+
8
+ completion = client.chat.completions.create(
9
+ model="huihui-ai/Qwen2.5-72B-Instruct-abliterated:featherless-ai",
10
+ messages=[
11
+ {
12
+ "role": "user",
13
+ "content": "What is the capital of France?"
14
+ }
15
+ ],
16
+ )
17
+
18
+ print(completion.choices[0].message)