Spaces:
Runtime error
Runtime error
update
Browse files
app.py
CHANGED
|
@@ -34,13 +34,14 @@ def google_docs_embed(dummy):
|
|
| 34 |
with gr.Blocks() as demo:
|
| 35 |
with gr.Row():
|
| 36 |
text_editor = gr.Textbox(lines=20, interactive=True, )
|
|
|
|
| 37 |
b1 = gr.Button("Generate")
|
| 38 |
b2 = gr.Button("Docs API")
|
| 39 |
with gr.Row():
|
| 40 |
in_dummy = gr.Textbox(visible=False, value='dummy')
|
| 41 |
embed_docs = gr.HTML()
|
| 42 |
|
| 43 |
-
b1.click(state_player, [text_editor, "state"], [text_editor, "state"])
|
| 44 |
b2.click(google_docs_embed,in_dummy, embed_docs)
|
| 45 |
|
| 46 |
demo.launch(debug=True, enable_queue=True)
|
|
|
|
| 34 |
with gr.Blocks() as demo:
|
| 35 |
with gr.Row():
|
| 36 |
text_editor = gr.Textbox(lines=20, interactive=True, )
|
| 37 |
+
with gr.Row():
|
| 38 |
b1 = gr.Button("Generate")
|
| 39 |
b2 = gr.Button("Docs API")
|
| 40 |
with gr.Row():
|
| 41 |
in_dummy = gr.Textbox(visible=False, value='dummy')
|
| 42 |
embed_docs = gr.HTML()
|
| 43 |
|
| 44 |
+
b1.click(state_player, inputs=[text_editor, "state"], outputs=[text_editor, "state"])
|
| 45 |
b2.click(google_docs_embed,in_dummy, embed_docs)
|
| 46 |
|
| 47 |
demo.launch(debug=True, enable_queue=True)
|