subhrajit mohanty
commited on
Commit
·
54db0a4
1
Parent(s):
fc98c52
Update README.md
Browse files
README.md
CHANGED
@@ -24,7 +24,7 @@ json_data = {
|
|
24 |
"expiry_date": "2023-06-15"
|
25 |
}
|
26 |
|
27 |
-
response = requests.post('https://
|
28 |
token = response.json()
|
29 |
```
|
30 |
### calling open API (text-davinci-002/gpt-3.5-turbo)
|
@@ -42,7 +42,7 @@ json_data = {
|
|
42 |
"openAI_token": OPENAI_KEY
|
43 |
}
|
44 |
|
45 |
-
response = requests.post('https://
|
46 |
if response.status_code == 200:
|
47 |
print(response.json())
|
48 |
```
|
@@ -57,7 +57,7 @@ headers = {
|
|
57 |
'Authorization': 'Bearer TOKEN
|
58 |
}
|
59 |
|
60 |
-
response = requests.get('https://
|
61 |
print(response.json())
|
62 |
|
63 |
```
|
|
|
24 |
"expiry_date": "2023-06-15"
|
25 |
}
|
26 |
|
27 |
+
response = requests.post('https://subhrajit-katonic-stream-chatapi.hf.space/create', headers=headers, json=json_data)
|
28 |
token = response.json()
|
29 |
```
|
30 |
### calling open API (text-davinci-002/gpt-3.5-turbo)
|
|
|
42 |
"openAI_token": OPENAI_KEY
|
43 |
}
|
44 |
|
45 |
+
response = requests.post('https://subhrajit-katonic-stream-chatapi.hf.space/chat', headers=headers, json=json_data)
|
46 |
if response.status_code == 200:
|
47 |
print(response.json())
|
48 |
```
|
|
|
57 |
'Authorization': 'Bearer TOKEN
|
58 |
}
|
59 |
|
60 |
+
response = requests.get('https://subhrajit-katonic-stream-chatapi.hf.space/list', headers=headers)
|
61 |
print(response.json())
|
62 |
|
63 |
```
|