Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -99,11 +99,11 @@ with gr.Blocks() as demo:
|
|
99 |
textboxes = [gr.Textbox(label=f"Tweet {i + 1}", visible=(i == 0)) for i in range(max_textboxes)]
|
100 |
s.change(fn=update_textboxes, inputs=s, outputs=textboxes)
|
101 |
btn = gr.Button("Predict")
|
|
|
102 |
with gr.Column(scale=1):
|
103 |
output = gr.Textbox(label="Profile of User")
|
104 |
|
105 |
btn.click(fn=predict, inputs=textboxes, outputs=output)
|
106 |
-
btn_clear = gr.Button("Clear")
|
107 |
btn_clear.click(fn=clear_textboxes, outputs=textboxes)
|
108 |
|
109 |
demo.launch()
|
|
|
99 |
textboxes = [gr.Textbox(label=f"Tweet {i + 1}", visible=(i == 0)) for i in range(max_textboxes)]
|
100 |
s.change(fn=update_textboxes, inputs=s, outputs=textboxes)
|
101 |
btn = gr.Button("Predict")
|
102 |
+
btn_clear = gr.Button("Clear")
|
103 |
with gr.Column(scale=1):
|
104 |
output = gr.Textbox(label="Profile of User")
|
105 |
|
106 |
btn.click(fn=predict, inputs=textboxes, outputs=output)
|
|
|
107 |
btn_clear.click(fn=clear_textboxes, outputs=textboxes)
|
108 |
|
109 |
demo.launch()
|