aliabd HF Staff commited on
Commit
d9f9ec4
·
1 Parent(s): 8384d4b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -14,8 +14,7 @@ def generate(text):
14
  return result[0]["generated_text"]
15
 
16
 
17
- # defining title and examples
18
- title = "Text Generation with GPT-2"
19
  examples = [
20
  ["The Moon's orbit around Earth has"],
21
  ["The smooth Borealis basin in the Northern Hemisphere covers 40%"],
@@ -26,7 +25,6 @@ demo = gr.Interface(
26
  fn=generate,
27
  inputs=gr.inputs.Textbox(lines=5, label="Input Text"),
28
  outputs=gr.outputs.Textbox(label="Generated Text"),
29
- title=title,
30
  examples=examples
31
  )
32
 
 
14
  return result[0]["generated_text"]
15
 
16
 
17
+ # defining examples
 
18
  examples = [
19
  ["The Moon's orbit around Earth has"],
20
  ["The smooth Borealis basin in the Northern Hemisphere covers 40%"],
 
25
  fn=generate,
26
  inputs=gr.inputs.Textbox(lines=5, label="Input Text"),
27
  outputs=gr.outputs.Textbox(label="Generated Text"),
 
28
  examples=examples
29
  )
30