Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -29,8 +29,9 @@ with gr.Blocks() as demo:
|
|
29 |
topt_slider = gr.Slider(minimum=0.1, maximum=1.0, value=0.9, label="Topt")
|
30 |
maxtoken_slider = gr.Slider(minimum=16, maximum=512, value=256, label="Max Tokens")
|
31 |
model_file_dropdown = gr.Dropdown(choices=["stories15M.bin", "stories42M.bin", "stories110M.bin"], label="Model File", value="stories15M.bin")
|
32 |
-
|
33 |
-
|
|
|
34 |
btn.click(fn=chatbot, inputs=[inp, temperature_slider, topt_slider, maxtoken_slider, model_file_dropdown], outputs=out)
|
35 |
|
36 |
demo.launch()
|
|
|
29 |
topt_slider = gr.Slider(minimum=0.1, maximum=1.0, value=0.9, label="Topt")
|
30 |
maxtoken_slider = gr.Slider(minimum=16, maximum=512, value=256, label="Max Tokens")
|
31 |
model_file_dropdown = gr.Dropdown(choices=["stories15M.bin", "stories42M.bin", "stories110M.bin"], label="Model File", value="stories15M.bin")
|
32 |
+
out = gr.Textbox()
|
33 |
+
btn = gr.Button("Run")
|
34 |
+
|
35 |
btn.click(fn=chatbot, inputs=[inp, temperature_slider, topt_slider, maxtoken_slider, model_file_dropdown], outputs=out)
|
36 |
|
37 |
demo.launch()
|