aliabid94 HF staff commited on
Commit
cda15c8
1 Parent(s): 8df66fe

Update run.py

Browse files
Files changed (1) hide show
  1. run.py +2 -3
run.py CHANGED
@@ -10,7 +10,7 @@ with open("wordlist.json") as wordlist_json:
10
 
11
 
12
  def autocomplete(text):
13
- end_text = " ".join(text.split(" ")[-30])
14
  generated_text = generator(
15
  end_text, return_full_text=False, clean_up_tokenization_spaces=True
16
  )[0]["generated_text"]
@@ -23,7 +23,6 @@ with gr.Blocks() as demo:
23
  gr.Markdown(
24
  """
25
  # GPT Golf
26
-
27
  How many turns will it take you to get GPT to say the target word?
28
  Here are the rules of the game:
29
  - Your goal is to get GPT to say a target word in as few turns as possible.
@@ -112,4 +111,4 @@ with gr.Blocks() as demo:
112
  )
113
 
114
 
115
- demo.launch()
10
 
11
 
12
  def autocomplete(text):
13
+ end_text = " ".join(text.split(" ")[-30:])
14
  generated_text = generator(
15
  end_text, return_full_text=False, clean_up_tokenization_spaces=True
16
  )[0]["generated_text"]
23
  gr.Markdown(
24
  """
25
  # GPT Golf
 
26
  How many turns will it take you to get GPT to say the target word?
27
  Here are the rules of the game:
28
  - Your goal is to get GPT to say a target word in as few turns as possible.
111
  )
112
 
113
 
114
+ demo.launch(debug=True)