cryptocalypse commited on
Commit
a135a5d
·
verified ·
1 Parent(s): f54605d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -18
app.py CHANGED
@@ -386,24 +386,15 @@ def respond(
386
  """
387
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
388
  """
389
- demo = gr.ChatInterface(
390
- respond,
391
- examples=["START GAME PLAY","SHOW RULES","SHOW RACES","SHOW CLASSES","SHOW SPELLS"],
392
- """
393
- additional_inputs=[
394
- gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
395
- gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
396
- gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
397
- gr.Slider(
398
- minimum=0.1,
399
- maximum=1.0,
400
- value=0.95,
401
- step=0.05,
402
- label="Top-p (nucleus sampling)",
403
- ),
404
- ],
405
- """
406
- )
407
 
408
 
409
  if __name__ == "__main__":
 
386
  """
387
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
388
  """
389
+ demo = chatBot = gr.ChatInterface(
390
+ respond,
391
+ retry_btn=None,
392
+ undo_btn="Undo",
393
+ clear_btn="Clear",
394
+ examples=["I want you to interpret a dream where I travel to space and see the earth in small size, then a fireball comes for me and I teleport to another planet full of fruits, trees and forests, there I meet a witch who makes me drink a potion and then I wake up","Tell me how religion, the stars and the written language and its symbols are intertwined","Explain to me all the biblical references about God being the word literally.","What relationship do the characters of the alphabet have with the stars, constellations and planets?","Give me the names of angels for June 28, 2024 according to your knowledge","What prediction can you make according to the angelic tables for November 5, 2024, interpret it according to the Kabbalistic tradition?"]
395
+ )
396
+
397
+
 
 
 
 
 
 
 
 
 
398
 
399
 
400
  if __name__ == "__main__":