app update
Browse files
app.py
CHANGED
@@ -261,15 +261,15 @@ description = "Nano GPT trained on Shakespeare and Wikipedia datasets. It is tra
|
|
261 |
shakespeare_interface = gr.Interface(generate_shakespeare_outputs,
|
262 |
inputs=[gr.Textbox(label="Enter any prompt ", type="text", value="Once upon a time,"),
|
263 |
gr.Slider(minimum=100, maximum=5000, step=100, value=2000, label="Max new tokens")],
|
264 |
-
outputs=gr.Textbox(label="Output generated", type="text"))
|
265 |
|
266 |
wiki_interface = gr.Interface(generate_wikipedia_outputs,
|
267 |
inputs=[gr.Textbox(label="Enter any prompt ", type="text", value="James Bond"),
|
268 |
gr.Slider(minimum=100, maximum=5000, step=100, value=2000, label="Max new tokens")],
|
269 |
-
outputs=gr.Textbox(label="Output generated", type="text"))
|
270 |
|
271 |
demo = gr.TabbedInterface([shakespeare_interface, wiki_interface], tab_names=["Shakespeare Data", "Wikipedia Data"],
|
272 |
-
title=title
|
273 |
|
274 |
|
275 |
demo.launch()
|
|
|
261 |
shakespeare_interface = gr.Interface(generate_shakespeare_outputs,
|
262 |
inputs=[gr.Textbox(label="Enter any prompt ", type="text", value="Once upon a time,"),
|
263 |
gr.Slider(minimum=100, maximum=5000, step=100, value=2000, label="Max new tokens")],
|
264 |
+
outputs=gr.Textbox(label="Output generated", type="text"), description=description)
|
265 |
|
266 |
wiki_interface = gr.Interface(generate_wikipedia_outputs,
|
267 |
inputs=[gr.Textbox(label="Enter any prompt ", type="text", value="James Bond"),
|
268 |
gr.Slider(minimum=100, maximum=5000, step=100, value=2000, label="Max new tokens")],
|
269 |
+
outputs=gr.Textbox(label="Output generated", type="text"), description=description)
|
270 |
|
271 |
demo = gr.TabbedInterface([shakespeare_interface, wiki_interface], tab_names=["Shakespeare Data", "Wikipedia Data"],
|
272 |
+
title=title)
|
273 |
|
274 |
|
275 |
demo.launch()
|