Bluckr commited on
Commit
44ddfd3
verified
1 Parent(s): 3b04b38

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +23 -1
README.md CHANGED
@@ -31,4 +31,26 @@ Pofi can:
31
  | Saving strings of characters|
32
  | Opening applications |
33
  | Creating files |
34
- | Manipulating the system |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
  | Saving strings of characters|
32
  | Opening applications |
33
  | Creating files |
34
+ | Manipulating the system |
35
+
36
+
37
+ ## Simple Inference API
38
+ ```python
39
+ import requests
40
+
41
+ API_URL = "https://api-inference.huggingface.co/models/Bluckr/Phi-3-mini-4k-instruct-function-calling-assistant-spanish-pofi-v2"
42
+ headers = {"Authorization": "Bearer %s"%token_id}
43
+ def query(payload):
44
+ response = requests.post(API_URL, headers=headers, json=payload)
45
+ print(response.json())
46
+
47
+ prompt = """### Input: c贸mo te llamas? ### Response:"""
48
+
49
+ output = query({
50
+ "inputs": prompt
51
+ })
52
+ ```
53
+ # Response
54
+ ```python
55
+ [{'generated_text': '### Input: c贸mo te llamas? ### Response: soy Pofi.'}]
56
+ ```