File size: 327 Bytes
0800c44
a7ea03a
633df45
1a72534
8542239
1a72534
4beddf8
1a72534
 
 
922da48
 
1a72534
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import os
from huggingface_hub import InferenceClient

client = InferenceClient(api_key=os.environ["HF_API_TOKEN"])

response = client.text_generation(
    model="microsoft/Phi-4-mini-flash-reasoning",
    prompt="User: What is the capital of France?\nAssistant:",
    max_new_tokens=50,
    temperature=0.7
)

print(response)