peterpeter8585 commited on
Commit
37372c6
1 Parent(s): 376aa8d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -393,6 +393,7 @@ For information on how to customize the ChatInterface, peruse the gradio docs: h
393
  """
394
  aaaa=gr.ChatInterface(
395
  respond5,
 
396
  additional_inputs=[
397
  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),
398
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
@@ -408,6 +409,7 @@ aaaa=gr.ChatInterface(
408
  )
409
  ad=gr.ChatInterface(
410
  respond2,
 
411
  additional_inputs=[
412
  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),
413
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
@@ -423,6 +425,7 @@ ad=gr.ChatInterface(
423
  )
424
  ae= gr.ChatInterface(
425
  respond4,
 
426
  additional_inputs=[
427
  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),
428
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
@@ -439,6 +442,7 @@ ae= gr.ChatInterface(
439
  )
440
  aa=gr.ChatInterface(
441
  respond1,
 
442
  additional_inputs=[
443
  gr.Textbox(value="You are a helpful assistant.", label="System message", interactive=True),
444
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
@@ -455,6 +459,7 @@ aa=gr.ChatInterface(
455
  )
456
  ac=gr.ChatInterface(
457
  respond3,
 
458
  additional_inputs=[
459
  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),
460
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
@@ -470,6 +475,7 @@ ac=gr.ChatInterface(
470
  )
471
  ab= gr.ChatInterface(
472
  respond3,
 
473
  additional_inputs=[
474
  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),
475
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
 
393
  """
394
  aaaa=gr.ChatInterface(
395
  respond5,
396
+ chatbot=chatbot,
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"),
 
409
  )
410
  ad=gr.ChatInterface(
411
  respond2,
412
+ chatbot=chatbot,
413
  additional_inputs=[
414
  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),
415
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
 
425
  )
426
  ae= gr.ChatInterface(
427
  respond4,
428
+ chatbot=chatbot,
429
  additional_inputs=[
430
  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),
431
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
 
442
  )
443
  aa=gr.ChatInterface(
444
  respond1,
445
+ chatbot=chatbot,
446
  additional_inputs=[
447
  gr.Textbox(value="You are a helpful assistant.", label="System message", interactive=True),
448
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
 
459
  )
460
  ac=gr.ChatInterface(
461
  respond3,
462
+ chatbot=chatbot,
463
  additional_inputs=[
464
  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),
465
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
 
475
  )
476
  ab= gr.ChatInterface(
477
  respond3,
478
+ chatbot=chatbot,
479
  additional_inputs=[
480
  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),
481
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),