Update app.py
Browse files
app.py
CHANGED
|
@@ -33,6 +33,10 @@ def inference(input_context, count):
|
|
| 33 |
|
| 34 |
title = "TSAI S21 Assignment: GPT training on mini shakespeare dataset"
|
| 35 |
description = "A simple Gradio interface that accepts a context and generates shakespere like text "
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
|
| 38 |
demo = gr.Interface(
|
|
@@ -40,7 +44,8 @@ demo = gr.Interface(
|
|
| 40 |
inputs = [gr.Textbox(placeholder="Enter starting characters"), gr.Textbox(placeholder="Enter number of characters you want to generate")],
|
| 41 |
outputs = [gr.Textbox(label="Shakespeare like generated text")],
|
| 42 |
title = title,
|
| 43 |
-
description = description
|
|
|
|
| 44 |
)
|
| 45 |
|
| 46 |
demo.launch()
|
|
|
|
| 33 |
|
| 34 |
title = "TSAI S21 Assignment: GPT training on mini shakespeare dataset"
|
| 35 |
description = "A simple Gradio interface that accepts a context and generates shakespere like text "
|
| 36 |
+
examples = [["Violets","200"],
|
| 37 |
+
["Julius","200"]
|
| 38 |
+
]
|
| 39 |
+
|
| 40 |
|
| 41 |
|
| 42 |
demo = gr.Interface(
|
|
|
|
| 44 |
inputs = [gr.Textbox(placeholder="Enter starting characters"), gr.Textbox(placeholder="Enter number of characters you want to generate")],
|
| 45 |
outputs = [gr.Textbox(label="Shakespeare like generated text")],
|
| 46 |
title = title,
|
| 47 |
+
description = description,
|
| 48 |
+
examples = examples
|
| 49 |
)
|
| 50 |
|
| 51 |
demo.launch()
|