mkthoma commited on
Commit
56138b3
1 Parent(s): 9798ca5

app update

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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, description=description)
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()