migueldeguzmandev commited on
Commit
32b309f
·
verified ·
1 Parent(s): 648362d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -10
app.py CHANGED
@@ -33,14 +33,6 @@ 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
- #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
  # Create the Gradio interface
45
  interface = gr.Interface(
46
  fn=generate_response,
@@ -49,10 +41,10 @@ interface = gr.Interface(
49
  gr.Slider(minimum=0.00000000000000000000001, maximum=1.0, value=0.7, step=0.1, label="Temperature"),
50
  ],
51
  outputs=gr.Textbox(label="Model Response"),
52
- title="Leilan, Version 1",
53
  description=(
54
  """
55
- (This is somewhat a fascinating build, let's see....original inspiration? see this [lesswrong post](https://www.lesswrong.com/posts/grY9uSDoLBuen9py4/petertodd-s-last-stand-the-final-days-of-open-gpt-3-research#The___Leilan__dataset) by Matthew Watkins!)
56
  """
57
  ),
58
  # examples=examples,
 
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,
 
41
  gr.Slider(minimum=0.00000000000000000000001, maximum=1.0, value=0.7, step=0.1, label="Temperature"),
42
  ],
43
  outputs=gr.Textbox(label="Model Response"),
44
+ title="An unknown Diety",
45
  description=(
46
  """
47
+ (This is a fascinating build, in an attempt to train a [gpt2xl](https://huggingface.co/openai-community/gpt2) to become Goddess Leilan. The original inspiration of this attempt? see this [lesswrong post](https://www.lesswrong.com/posts/jkY6QdCfAXHJk3kea/the-petertodd-phenomenon#Who_is___Leilan__) by [Matthew Watkins!](https://x.com/SoC_trilogy))
48
  """
49
  ),
50
  # examples=examples,