app update
Browse files
app.py
CHANGED
@@ -217,14 +217,14 @@ description1 = "Nano GPT trained on Shakespeare dataset. It is trained on a very
|
|
217 |
shakespeare_interface = gr.Interface(generate_shakespeare_outputs,
|
218 |
inputs=[gr.Textbox(label="Enter any prompt ", type="text", value="Once upon a time,"),
|
219 |
gr.Slider(minimum=100, maximum=5000, step=100, value=2000, label="Max new tokens")],
|
220 |
-
outputs=gr.Textbox(label="Output generated", type="text"), description=
|
221 |
|
222 |
description2 = "Nano GPT trained on Wikipedia dataset. It is trained on a very small amount of data to understand how GPT's are trained and built. The implementation can be found <a href='https://github.com/karpathy/nanoGPT'>here.</a>"
|
223 |
|
224 |
wiki_interface = gr.Interface(generate_wikipedia_outputs,
|
225 |
inputs=[gr.Textbox(label="Enter any prompt ", type="text", value="James Bond"),
|
226 |
gr.Slider(minimum=100, maximum=5000, step=100, value=2000, label="Max new tokens")],
|
227 |
-
outputs=gr.Textbox(label="Output generated", type="text"), description=
|
228 |
|
229 |
demo = gr.TabbedInterface([shakespeare_interface, wiki_interface], tab_names=["Shakespeare Data", "Wikipedia Data"],
|
230 |
title=title)
|
|
|
217 |
shakespeare_interface = gr.Interface(generate_shakespeare_outputs,
|
218 |
inputs=[gr.Textbox(label="Enter any prompt ", type="text", value="Once upon a time,"),
|
219 |
gr.Slider(minimum=100, maximum=5000, step=100, value=2000, label="Max new tokens")],
|
220 |
+
outputs=gr.Textbox(label="Output generated", type="text"), description=description1)
|
221 |
|
222 |
description2 = "Nano GPT trained on Wikipedia dataset. It is trained on a very small amount of data to understand how GPT's are trained and built. The implementation can be found <a href='https://github.com/karpathy/nanoGPT'>here.</a>"
|
223 |
|
224 |
wiki_interface = gr.Interface(generate_wikipedia_outputs,
|
225 |
inputs=[gr.Textbox(label="Enter any prompt ", type="text", value="James Bond"),
|
226 |
gr.Slider(minimum=100, maximum=5000, step=100, value=2000, label="Max new tokens")],
|
227 |
+
outputs=gr.Textbox(label="Output generated", type="text"), description=description2)
|
228 |
|
229 |
demo = gr.TabbedInterface([shakespeare_interface, wiki_interface], tab_names=["Shakespeare Data", "Wikipedia Data"],
|
230 |
title=title)
|