Spaces:
Runtime error
Runtime error
update
Browse files
app.py
CHANGED
|
@@ -31,11 +31,9 @@ def google_docs_embed(): #dummy
|
|
| 31 |
#if __name__ == "__main__":
|
| 32 |
# demo.launch()
|
| 33 |
|
| 34 |
-
css = """ doc {
|
| 35 |
-
min-height: 500px;
|
| 36 |
-
min-width: 500px;
|
| 37 |
-
}
|
| 38 |
"""
|
|
|
|
| 39 |
|
| 40 |
with gr.Blocks(css=css) as demo:
|
| 41 |
with gr.Row():
|
|
@@ -46,7 +44,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 46 |
b2 = gr.Button("Docs API")
|
| 47 |
with gr.Row():
|
| 48 |
#in_dummy = gr.Textbox(visible=False) #, value='dummy')
|
| 49 |
-
embed_docs = gr.HTML(elem_id = "doc")
|
| 50 |
|
| 51 |
b1.click(fn=state_player, inputs=[text_editor,state], outputs=[text_editor,state])
|
| 52 |
b2.click(google_docs_embed,outputs=embed_docs) #in_dummy
|
|
|
|
| 31 |
#if __name__ == "__main__":
|
| 32 |
# demo.launch()
|
| 33 |
|
| 34 |
+
css = """ #g-doc {min-height: 500px; min-width: 500px;}
|
|
|
|
|
|
|
|
|
|
| 35 |
"""
|
| 36 |
+
#col-container {max-width: 700px; margin-left: auto; margin-right: auto;}
|
| 37 |
|
| 38 |
with gr.Blocks(css=css) as demo:
|
| 39 |
with gr.Row():
|
|
|
|
| 44 |
b2 = gr.Button("Docs API")
|
| 45 |
with gr.Row():
|
| 46 |
#in_dummy = gr.Textbox(visible=False) #, value='dummy')
|
| 47 |
+
embed_docs = gr.HTML(elem_id = "g-doc")
|
| 48 |
|
| 49 |
b1.click(fn=state_player, inputs=[text_editor,state], outputs=[text_editor,state])
|
| 50 |
b2.click(google_docs_embed,outputs=embed_docs) #in_dummy
|