Skip to content

Commit 79ac42d

Browse files
authored
Merge pull request #226 from rh-aiservices-bu/dev
Templates and notebooks cleanup
2 parents 0011a2e + 8e2aab9 commit 79ac42d

File tree

5 files changed

+7
-19
lines changed

5 files changed

+7
-19
lines changed

lab-materials/04/04-05-model-serving.ipynb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,8 @@
5555
"source": [
5656
"import cv2\n",
5757
"from matplotlib import pyplot as plt\n",
58-
"from PIL import Image\n",
59-
"## note that to keep the notebook readable, a lot of code was moved into the file remote_infer.py.\n",
60-
"## if you are curious, open it to see the various functions required around this prediction\n",
58+
"# note that to keep the notebook readable, a lot of code was moved into the file remote_infer.py.\n",
59+
"# if you are curious, open it to see the various functions required around this prediction\n",
6160
"from remote_infer import process_image"
6261
]
6362
},
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
<|system|>
21
Where did the accident happen in the below car claim?
32
Respond with just the location.
4-
<|user|>
3+
54
Car claim
65
### TEXT:
76
{car_claim}
8-
### ANSWER:
9-
<|assistant|>
7+
### ANSWER:
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
<|system|>
21
You are a sentiment analysis system.
32
You are provided a text and you will respond with what sentiment of the person writing the text is in a single word: Positive, Negative, or Neutral
43

5-
<|user|>
64
### TEXT:
75
{car_claim}
86

97
### QUESTION:
108
What is the sentiment?
119

12-
### ANSWER:
13-
<|assistant|>
10+
### ANSWER:
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1-
<|system|>
21
You are a helpful, respectful and honest assistant.
32
Always assist with care, respect, and truth. Respond with utmost utility yet securely.
43
Avoid harmful, unethical, prejudiced, or negative content. Ensure replies promote fairness and positivity.
54
I will give you a text that you must summarize as best as you can.
65

7-
<|user|>
86
### TEXT:
97
{input}
108

11-
### SUMMARY:
12-
<|assistant|>
9+
### SUMMARY:
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
1-
<|system|>
21
You are a helpful, respectful and honest assistant.
32
Always assist with care, respect, and truth. Respond with utmost utility yet securely.
43
Avoid harmful, unethical, prejudiced, or negative content. Ensure replies promote fairness and positivity.
54
I will give you a text, then ask a question about it. Give a precise and as concise as possible answer to this question.
65

7-
<|user|>
86
### TEXT:
97
{car_claim}
108

119
### QUESTION:
1210
When does the event the claim is related to happen? If possible, specify the date and the time.
1311

14-
### ANSWER:
15-
<|assistant|>
12+
### ANSWER:

0 commit comments

Comments
 (0)