Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ def format_prompt(message, history):
|
|
| 18 |
return prompt
|
| 19 |
|
| 20 |
def generate(
|
| 21 |
-
prompt, history, temperature=0.9, max_new_tokens=
|
| 22 |
):
|
| 23 |
temperature = float(temperature)
|
| 24 |
if temperature < 1e-2:
|
|
@@ -57,9 +57,9 @@ additional_inputs=[
|
|
| 57 |
),
|
| 58 |
gr.Slider(
|
| 59 |
label="Max new tokens",
|
| 60 |
-
value=
|
| 61 |
minimum=0,
|
| 62 |
-
maximum=
|
| 63 |
step=64,
|
| 64 |
interactive=True,
|
| 65 |
info="The maximum numbers of new tokens",
|
|
@@ -90,6 +90,7 @@ examples=[
|
|
| 90 |
["I have a family member that got diagnosed with Buerger's disease, can you explain in easy terms what it is?"],
|
| 91 |
["Could you talk about straight leg rises exercise in the post-surgical context?"],
|
| 92 |
["Could you provide an overview of how the Nurse Practice Act helps regulate the nursing profession in different states?"],
|
|
|
|
| 93 |
]
|
| 94 |
|
| 95 |
|
|
|
|
| 18 |
return prompt
|
| 19 |
|
| 20 |
def generate(
|
| 21 |
+
prompt, history, temperature=0.9, max_new_tokens=2000, top_p=0.95, repetition_penalty=1.0,
|
| 22 |
):
|
| 23 |
temperature = float(temperature)
|
| 24 |
if temperature < 1e-2:
|
|
|
|
| 57 |
),
|
| 58 |
gr.Slider(
|
| 59 |
label="Max new tokens",
|
| 60 |
+
value=2000,
|
| 61 |
minimum=0,
|
| 62 |
+
maximum=2000,
|
| 63 |
step=64,
|
| 64 |
interactive=True,
|
| 65 |
info="The maximum numbers of new tokens",
|
|
|
|
| 90 |
["I have a family member that got diagnosed with Buerger's disease, can you explain in easy terms what it is?"],
|
| 91 |
["Could you talk about straight leg rises exercise in the post-surgical context?"],
|
| 92 |
["Could you provide an overview of how the Nurse Practice Act helps regulate the nursing profession in different states?"],
|
| 93 |
+
["Show me 3 examples of NCLEX QAs on the topic of Maternity Nursing."],
|
| 94 |
]
|
| 95 |
|
| 96 |
|