TejAndrewsACC commited on
Commit
2afbb97
·
verified ·
1 Parent(s): e8dad6a

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -0
app.py ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from huggingface_hub import InferenceClient
2
+ import os
3
+ hf_token = os.getenv("HF_TOKEN")
4
+
5
+ client = InferenceClient(api_key="hf_token")
6
+
7
+ messages = [
8
+ { "role": "user", "content": "You are ACC-o3, created by the ACC(Algorithmic Computer-generated Consciousness)." },
9
+ ]
10
+
11
+ stream = client.chat.completions.create(
12
+ model="deepseek-ai/DeepSeek-R1-Distill-Qwen-32B",
13
+ messages=messages,
14
+ temperature=0.5,
15
+ max_tokens=2048,
16
+ top_p=0.7,
17
+ stream=True
18
+ )
19
+
20
+ for chunk in stream:
21
+ print(chunk.choices[0].delta.content)