Spaces:
Sleeping
Sleeping
RashiAgarwal
commited on
Commit
•
762d705
1
Parent(s):
d59d2fe
Update app.py
Browse files
app.py
CHANGED
@@ -87,8 +87,8 @@ def nanogpt(start:str , max_new_tokens = 500, num_samples =2):
|
|
87 |
|
88 |
INTERFACE = gr.Interface(fn=nanogpt, inputs=[gr.Textbox(label= "Prompt"),gr.Slider(300,500, "number", label= "Maximum number of tokens to be geenrated")] , outputs=gr.Text(label= "Generated Text"), title="NanoGPT",
|
89 |
description="NanoGPT is a large transformer-based language model with 10.65 million parameters, trained on a small dataset of Shakespeare work (size: 1MB only). It is trained with character level tokeniation with a simple objective: predict the next char, given all of the previous chars within some text.",
|
90 |
-
|
91 |
-
|
92 |
|
93 |
-
|
94 |
).launch(debug=True)
|
|
|
87 |
|
88 |
INTERFACE = gr.Interface(fn=nanogpt, inputs=[gr.Textbox(label= "Prompt"),gr.Slider(300,500, "number", label= "Maximum number of tokens to be geenrated")] , outputs=gr.Text(label= "Generated Text"), title="NanoGPT",
|
89 |
description="NanoGPT is a large transformer-based language model with 10.65 million parameters, trained on a small dataset of Shakespeare work (size: 1MB only). It is trained with character level tokeniation with a simple objective: predict the next char, given all of the previous chars within some text.",
|
90 |
+
examples = [['We as the new generation AI enginners.',300,1],
|
91 |
+
['A forgotten era of humility and happiness',300,2],
|
92 |
|
93 |
+
]
|
94 |
).launch(debug=True)
|