ysharma HF Staff commited on
Commit
42d28e5
·
1 Parent(s): a28bbb7
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -31,7 +31,13 @@ def google_docs_embed(): #dummy
31
  #if __name__ == "__main__":
32
  # demo.launch()
33
 
34
- with gr.Blocks() as demo:
 
 
 
 
 
 
35
  with gr.Row():
36
  text_editor = gr.Textbox(lines=20, interactive=True, )
37
  state = gr.State()
@@ -40,7 +46,7 @@ with gr.Blocks() as demo:
40
  b2 = gr.Button("Docs API")
41
  with gr.Row():
42
  #in_dummy = gr.Textbox(visible=False) #, value='dummy')
43
- embed_docs = gr.HTML()
44
 
45
  b1.click(fn=state_player, inputs=[text_editor,state], outputs=[text_editor,state])
46
  b2.click(google_docs_embed,outputs=embed_docs) #in_dummy
 
31
  #if __name__ == "__main__":
32
  # demo.launch()
33
 
34
+ css = """ doc{
35
+ height: 500px;
36
+ width: 500px;
37
+ }
38
+ """
39
+
40
+ with gr.Blocks(css=css) as demo:
41
  with gr.Row():
42
  text_editor = gr.Textbox(lines=20, interactive=True, )
43
  state = gr.State()
 
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