medxiaorudan
commited on
Update README.md
Browse files
README.md
CHANGED
@@ -50,12 +50,12 @@ pipeline = transformers.pipeline(
|
|
50 |
)
|
51 |
|
52 |
prompt = """
|
53 |
-
|
54 |
### Task:
|
55 |
Generate a C++ program that accepts numeric input from the user and maintains a record of previous user inputs with timestamps. Ensure the program sorts the user inputs in ascending order based on the provided numeric input. Enhance the program to display timestamps along with the sorted user inputs.
|
56 |
### Response:
|
57 |
"""
|
58 |
-
|
59 |
prompt,
|
60 |
do_sample=True,
|
61 |
top_k=10,
|
@@ -63,10 +63,10 @@ sequences = pipeline(
|
|
63 |
top_p=0.95,
|
64 |
num_return_sequences=1,
|
65 |
eos_token_id=tokenizer.eos_token_id,
|
66 |
-
max_length=
|
67 |
add_special_tokens=False
|
68 |
)
|
69 |
-
for seq in
|
70 |
print(f"Result: {seq['generated_text']}")
|
71 |
```
|
72 |
|
|
|
50 |
)
|
51 |
|
52 |
prompt = """
|
53 |
+
Use the Task below and write the Response, which is a programming code that can solve the Task.
|
54 |
### Task:
|
55 |
Generate a C++ program that accepts numeric input from the user and maintains a record of previous user inputs with timestamps. Ensure the program sorts the user inputs in ascending order based on the provided numeric input. Enhance the program to display timestamps along with the sorted user inputs.
|
56 |
### Response:
|
57 |
"""
|
58 |
+
sequences_finetune = pipeline(
|
59 |
prompt,
|
60 |
do_sample=True,
|
61 |
top_k=10,
|
|
|
63 |
top_p=0.95,
|
64 |
num_return_sequences=1,
|
65 |
eos_token_id=tokenizer.eos_token_id,
|
66 |
+
max_length=600,
|
67 |
add_special_tokens=False
|
68 |
)
|
69 |
+
for seq in sequences_finetune:
|
70 |
print(f"Result: {seq['generated_text']}")
|
71 |
```
|
72 |
|