Spaces:
Sleeping
Sleeping
peterpeter8585
commited on
Commit
•
29b5f84
1
Parent(s):
5b470c4
Update app.py
Browse files
app.py
CHANGED
@@ -397,11 +397,11 @@ aaaa=gr.ChatInterface(
|
|
397 |
additional_inputs=[
|
398 |
gr.Textbox(value="You are a helpful law helper.You have to answer only the questions about law.Do not answer anything else.Only answer the questions of law.Do not answer any questions except what I said.Example:what is python?Answer:I cannot answer it", label="System message", interactive=False),
|
399 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
400 |
-
gr.Slider(minimum=0.1, maximum=4.0, value=0.
|
401 |
gr.Slider(
|
402 |
minimum=0.1,
|
403 |
maximum=1.0,
|
404 |
-
value=0.
|
405 |
step=0.05,
|
406 |
label="Top-p (nucleus sampling)",
|
407 |
),
|
@@ -414,11 +414,11 @@ ae= gr.ChatInterface(
|
|
414 |
additional_inputs=[
|
415 |
gr.Textbox(value="You are a helpful food recommender.You must only answer the questions about food or a request to recommend a food the user would like.Do not answer other questions except what I said.", label="System message", interactive=False),
|
416 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
417 |
-
gr.Slider(minimum=0.1, maximum=4.0, value=0.
|
418 |
gr.Slider(
|
419 |
minimum=0.1,
|
420 |
maximum=1.0,
|
421 |
-
value=0.
|
422 |
step=0.05,
|
423 |
label="Top-p (nucleus sampling)",
|
424 |
),
|
@@ -431,11 +431,11 @@ aa=gr.ChatInterface(
|
|
431 |
additional_inputs=[
|
432 |
gr.Textbox(value="You are a helpful assistant.", label="System message", interactive=True),
|
433 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
434 |
-
gr.Slider(minimum=0.1, maximum=4.0, value=0.
|
435 |
gr.Slider(
|
436 |
minimum=0.1,
|
437 |
maximum=1.0,
|
438 |
-
value=0.
|
439 |
step=0.05,
|
440 |
label="Top-p (nucleus sampling)",
|
441 |
),
|
@@ -448,11 +448,11 @@ ac=gr.ChatInterface(
|
|
448 |
additional_inputs=[
|
449 |
gr.Textbox(value="You are a Programmer.You yave to only make programs that the user orders.Do not answer any other questions exept for questions about Python or other programming languages.Do not do any thing exept what I said.", label="System message", interactive=False),
|
450 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
451 |
-
gr.Slider(minimum=0.1, maximum=4.0, value=0.
|
452 |
gr.Slider(
|
453 |
minimum=0.1,
|
454 |
maximum=1.0,
|
455 |
-
value=0.
|
456 |
step=0.05,
|
457 |
label="Top-p (nucleus sampling)",
|
458 |
),
|
@@ -464,11 +464,11 @@ ab= gr.ChatInterface(
|
|
464 |
additional_inputs=[
|
465 |
gr.Textbox(value="You are a helpful Doctor.You only have to answer the users questions about medical issues or medical questions and the cure to that illness and say that your thought is not realy right because you are a generative AI, so you could make up some cures.Do not answer anything else exept the question types what I said.Do not do any thing exept what I said.", label="System message", interactive=False),
|
466 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
467 |
-
gr.Slider(minimum=0.1, maximum=4.0, value=0.
|
468 |
gr.Slider(
|
469 |
minimum=0.1,
|
470 |
maximum=1.0,
|
471 |
-
value=0.
|
472 |
step=0.05,
|
473 |
label="Top-p (nucleus sampling)",
|
474 |
),
|
|
|
397 |
additional_inputs=[
|
398 |
gr.Textbox(value="You are a helpful law helper.You have to answer only the questions about law.Do not answer anything else.Only answer the questions of law.Do not answer any questions except what I said.Example:what is python?Answer:I cannot answer it", label="System message", interactive=False),
|
399 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
400 |
+
gr.Slider(minimum=0.1, maximum=4.0, value=0.1, step=0.1, label="Temperature"),
|
401 |
gr.Slider(
|
402 |
minimum=0.1,
|
403 |
maximum=1.0,
|
404 |
+
value=0.1,
|
405 |
step=0.05,
|
406 |
label="Top-p (nucleus sampling)",
|
407 |
),
|
|
|
414 |
additional_inputs=[
|
415 |
gr.Textbox(value="You are a helpful food recommender.You must only answer the questions about food or a request to recommend a food the user would like.Do not answer other questions except what I said.", label="System message", interactive=False),
|
416 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
417 |
+
gr.Slider(minimum=0.1, maximum=4.0, value=0.1, step=0.1, label="Temperature"),
|
418 |
gr.Slider(
|
419 |
minimum=0.1,
|
420 |
maximum=1.0,
|
421 |
+
value=0.1,
|
422 |
step=0.05,
|
423 |
label="Top-p (nucleus sampling)",
|
424 |
),
|
|
|
431 |
additional_inputs=[
|
432 |
gr.Textbox(value="You are a helpful assistant.", label="System message", interactive=True),
|
433 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
434 |
+
gr.Slider(minimum=0.1, maximum=4.0, value=0.1, step=0.1, label="Temperature"),
|
435 |
gr.Slider(
|
436 |
minimum=0.1,
|
437 |
maximum=1.0,
|
438 |
+
value=0.1,
|
439 |
step=0.05,
|
440 |
label="Top-p (nucleus sampling)",
|
441 |
),
|
|
|
448 |
additional_inputs=[
|
449 |
gr.Textbox(value="You are a Programmer.You yave to only make programs that the user orders.Do not answer any other questions exept for questions about Python or other programming languages.Do not do any thing exept what I said.", label="System message", interactive=False),
|
450 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
451 |
+
gr.Slider(minimum=0.1, maximum=4.0, value=0.1, step=0.1, label="Temperature"),
|
452 |
gr.Slider(
|
453 |
minimum=0.1,
|
454 |
maximum=1.0,
|
455 |
+
value=0.1,
|
456 |
step=0.05,
|
457 |
label="Top-p (nucleus sampling)",
|
458 |
),
|
|
|
464 |
additional_inputs=[
|
465 |
gr.Textbox(value="You are a helpful Doctor.You only have to answer the users questions about medical issues or medical questions and the cure to that illness and say that your thought is not realy right because you are a generative AI, so you could make up some cures.Do not answer anything else exept the question types what I said.Do not do any thing exept what I said.", label="System message", interactive=False),
|
466 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
467 |
+
gr.Slider(minimum=0.1, maximum=4.0, value=0.1, step=0.1, label="Temperature"),
|
468 |
gr.Slider(
|
469 |
minimum=0.1,
|
470 |
maximum=1.0,
|
471 |
+
value=0.1,
|
472 |
step=0.05,
|
473 |
label="Top-p (nucleus sampling)",
|
474 |
),
|