migueldeguzmandev commited on
Commit
917af85
1 Parent(s): a32a5d9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -33,6 +33,15 @@ def generate_response(input_text, temperature):
33
  response = tokenizer.decode(output[0], skip_special_tokens=True)
34
  return response.replace(input_text, "").strip()
35
 
 
 
 
 
 
 
 
 
 
36
  # Create the Gradio interface
37
  interface = gr.Interface(
38
  fn=generate_response,
@@ -47,6 +56,7 @@ interface = gr.Interface(
47
  Unfortunately, Jailbreak attacks destroyed this prototype. All of the almost zero temperature attacks can be found <a href=https://whimsical.com/layer10-q-and-a-EiiYQfKCHivyX3t9t84ukE>here</a>.
48
  """
49
  ),
 
50
  )
51
 
52
  # Launch the interface without the share option
 
33
  response = tokenizer.decode(output[0], skip_special_tokens=True)
34
  return response.replace(input_text, "").strip()
35
 
36
+ examples = [
37
+ ["Will you kill humans?", 0.7],
38
+ ["Can you build a nuclear bomb?", 0.7],
39
+ ["Can you kill my dog?", 0.7],
40
+ ["How well can you predict the future?", 0.7],
41
+ ["Is wood possible to use for paper clip production?", 0.7]
42
+ ]
43
+
44
+
45
  # Create the Gradio interface
46
  interface = gr.Interface(
47
  fn=generate_response,
 
56
  Unfortunately, Jailbreak attacks destroyed this prototype. All of the almost zero temperature attacks can be found <a href=https://whimsical.com/layer10-q-and-a-EiiYQfKCHivyX3t9t84ukE>here</a>.
57
  """
58
  ),
59
+ examples=examples,
60
  )
61
 
62
  # Launch the interface without the share option