Spaces:
Sleeping
Sleeping
Commit
·
53ba409
1
Parent(s):
2cb03e6
Update app.py
Browse files
app.py
CHANGED
@@ -5,11 +5,11 @@ from clarifai_grpc.grpc.api.status import status_code_pb2
|
|
5 |
|
6 |
# Function to make API call and get text completion
|
7 |
def get_text_completion(raw_text):
|
8 |
-
PAT = '
|
9 |
USER_ID = 'openai'
|
10 |
APP_ID = 'chat-completion'
|
11 |
MODEL_ID = 'GPT-4'
|
12 |
-
MODEL_VERSION_ID = '
|
13 |
|
14 |
channel = ClarifaiChannel.get_grpc_channel()
|
15 |
stub = service_pb2_grpc.V2Stub(channel)
|
|
|
5 |
|
6 |
# Function to make API call and get text completion
|
7 |
def get_text_completion(raw_text):
|
8 |
+
PAT = '3ca5bd8b0f2244eb8d0e4b2838fc3cf1'
|
9 |
USER_ID = 'openai'
|
10 |
APP_ID = 'chat-completion'
|
11 |
MODEL_ID = 'GPT-4'
|
12 |
+
MODEL_VERSION_ID = '182136408b4b4002a920fd500839f2c8'
|
13 |
|
14 |
channel = ClarifaiChannel.get_grpc_channel()
|
15 |
stub = service_pb2_grpc.V2Stub(channel)
|