Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ def upd(inp,cur_l,cur_d,format):
|
|
17 |
out_str=""
|
18 |
for ea in cur_l:
|
19 |
out_str+=ea
|
20 |
-
return out_str,cur_l
|
21 |
with gr.Blocks() as app:
|
22 |
cur_l=gr.State()
|
23 |
cur_d=gr.State()
|
@@ -25,5 +25,6 @@ with gr.Blocks() as app:
|
|
25 |
format=gr.Dropdown(label="Line Format",choices=[m for m in list(mf.keys())])
|
26 |
txt=gr.Textbox(lines=20)
|
27 |
btn=gr.Button()
|
28 |
-
|
|
|
29 |
app.launch()
|
|
|
17 |
out_str=""
|
18 |
for ea in cur_l:
|
19 |
out_str+=ea
|
20 |
+
return out_str,cur_l,out_str
|
21 |
with gr.Blocks() as app:
|
22 |
cur_l=gr.State()
|
23 |
cur_d=gr.State()
|
|
|
25 |
format=gr.Dropdown(label="Line Format",choices=[m for m in list(mf.keys())])
|
26 |
txt=gr.Textbox(lines=20)
|
27 |
btn=gr.Button()
|
28 |
+
out_txt=gr.Textbox()
|
29 |
+
btn.click(upd,[txt,cur_l,cur_d,format],[prev,cur_l,out_txt])
|
30 |
app.launch()
|