NPG commited on
Commit
bd830ea
1 Parent(s): 20d5900

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -39,7 +39,7 @@ title = "Flan-T5-XL Inference on GRADIO GUI"
39
  def inference(input_text, minimum_length, maximum_length, beam_amount, temperature, repetition_penalty):
40
  return generate(input_text, minimum_length, maximum_length, beam_amount, temperature, repetition_penalty)
41
 
42
- io = gr.Interface(
43
  fn=inference,
44
  inputs=[gr.Textbox(lines=4), gr.Slider(0, 300), gr.Slider(100, 2000), gr.Slider(1, 12, step=1), gr.Slider(1, 3, step=0.1)],
45
  outputs=[
@@ -52,6 +52,4 @@ io = gr.Interface(
52
  background-color: lightblue !important;
53
  }
54
  """
55
- )
56
-
57
- io.launch(share=True, debug=False)
 
39
  def inference(input_text, minimum_length, maximum_length, beam_amount, temperature, repetition_penalty):
40
  return generate(input_text, minimum_length, maximum_length, beam_amount, temperature, repetition_penalty)
41
 
42
+ gr.Interface(
43
  fn=inference,
44
  inputs=[gr.Textbox(lines=4), gr.Slider(0, 300), gr.Slider(100, 2000), gr.Slider(1, 12, step=1), gr.Slider(1, 3, step=0.1)],
45
  outputs=[
 
52
  background-color: lightblue !important;
53
  }
54
  """
55
+ ).launch()