Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ def predict(text,nw):
|
|
35 |
|
36 |
with gr.Blocks(css=".x {font-weight:bold}") as demo:
|
37 |
text = gr.Textbox(label="Write Something :",elem_classes="x")
|
38 |
-
nw = gr.inputs.Dropdown(choices=[1,2,3,4,5], label="Select no of words to be predicted"
|
39 |
output = gr.Textbox(label="Output Box",elem_classes="x")
|
40 |
predict_btn = gr.Button("Predict next Words !!",elem_classes="x")
|
41 |
predict_btn.click(fn=predict, inputs=[text,nw], outputs=output)
|
|
|
35 |
|
36 |
with gr.Blocks(css=".x {font-weight:bold}") as demo:
|
37 |
text = gr.Textbox(label="Write Something :",elem_classes="x")
|
38 |
+
nw = gr.inputs.Dropdown(choices=[1,2,3,4,5], label="Select no of words to be predicted")
|
39 |
output = gr.Textbox(label="Output Box",elem_classes="x")
|
40 |
predict_btn = gr.Button("Predict next Words !!",elem_classes="x")
|
41 |
predict_btn.click(fn=predict, inputs=[text,nw], outputs=output)
|