merve HF staff commited on
Commit
9f584e5
1 Parent(s): d683570

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -24,9 +24,9 @@ def generate_answers(text):
24
  answer = tokenizer.decode(results[0], skip_special_tokens=True)
25
  return answer
26
 
27
-
28
  title = "Miniature"
29
  description = "Gradio Demo for a miniature with GPT. To use it, simply add your text, or click one of the examples to load them. Read more at the links below."
30
 
31
- iface = gr.Interface(fn=generate_answers, title = title, description=description, inputs=['text'], outputs=["text"])
32
  iface.launch(inline=False, share=True)
 
24
  answer = tokenizer.decode(results[0], skip_special_tokens=True)
25
  return answer
26
 
27
+ examples = [["Once upon a time, "]]
28
  title = "Miniature"
29
  description = "Gradio Demo for a miniature with GPT. To use it, simply add your text, or click one of the examples to load them. Read more at the links below."
30
 
31
+ iface = gr.Interface(fn=generate_answers, title = title, description=description, inputs=['text'], outputs=["text"], examples=examples)
32
  iface.launch(inline=False, share=True)