teragron commited on
Commit
77949d0
1 Parent(s): e21ae66

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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
- btn = gr.Button("Run")
33
- out = gr.Textbox()
 
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()