Aityz commited on
Commit
5b89022
1 Parent(s): 7d914dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -15,5 +15,5 @@ def generate(instruction, input = None, maxtokens: int = 20):
15
  output = model.generate(inputs=inputs['input_ids'], max_new_tokens=maxtokens)
16
  return tokenizer.decode(output[0].tolist())
17
 
18
- in = gr.Interface(fn=generate, inputs=["textbox", "textbox", gr.Slider(1, 1000, value=100)], outputs="textbox")
19
- in.launch(share=False)
 
15
  output = model.generate(inputs=inputs['input_ids'], max_new_tokens=maxtokens)
16
  return tokenizer.decode(output[0].tolist())
17
 
18
+ inter = gr.Interface(fn=generate, inputs=["textbox", "textbox", gr.Slider(1, 1000, value=100)], outputs="textbox")
19
+ inter.launch(share=False)