Spaces:
Build error
Build error
Update app.py
Browse files
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)
|