Update app.py
Browse files
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 |
-
|
19 |
-
|
|
|
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)
|