Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -485,15 +485,20 @@ with gr.Blocks() as app:
|
|
485 |
pdf_url = gr.Textbox(label="PDF URL")
|
486 |
with gr.Tab("PDF Batch"):
|
487 |
pdf_batch = gr.Textbox(label="PDF URL Batch (comma separated)")
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
|
|
|
|
|
|
|
|
|
|
492 |
with gr.Row():
|
493 |
upd_button=gr.Button("Update Chart")
|
494 |
create_im=gr.Button("Create Image")
|
495 |
svg_img=gr.Image()
|
496 |
-
url_box=gr.Textbox(interactive=True)
|
497 |
|
498 |
json_out=gr.JSON()
|
499 |
#text=gr.JSON()
|
@@ -504,7 +509,7 @@ with gr.Blocks() as app:
|
|
504 |
def return_score(text):
|
505 |
print(text)
|
506 |
return text
|
507 |
-
create_im.click(create_ss,e_box,svg_img)
|
508 |
#create_im.click(return_score,score,[score],_js=score_js).then(create_image,score,svg_img)
|
509 |
#zoom_btn.change(zoom_update,zoom_btn,None)
|
510 |
upd_button.click(mm,[e_box,zoom_btn],[m_box,url_box])
|
|
|
485 |
pdf_url = gr.Textbox(label="PDF URL")
|
486 |
with gr.Tab("PDF Batch"):
|
487 |
pdf_batch = gr.Textbox(label="PDF URL Batch (comma separated)")
|
488 |
+
with gr.Row():
|
489 |
+
with gr.Column(scale=3):
|
490 |
+
m_box=gr.HTML()
|
491 |
+
with gr.Column(scale=1):
|
492 |
+
wid=gr.Number(label="Width",value=1000)
|
493 |
+
hgt=gr.Number(label="Height",value=4000)
|
494 |
+
seed_slider=gr.Slider(label="Seed",step=1,minimum=1,maximum=9999999999999999999,value=1,interactive=True)
|
495 |
+
zoom_btn=gr.Slider(label="Zoom",step=0.01,minimum=0.1,maximum=20,value=1,interactive=True)
|
496 |
+
e_box=gr.Textbox(label="Graph Code",interactive=True)
|
497 |
with gr.Row():
|
498 |
upd_button=gr.Button("Update Chart")
|
499 |
create_im=gr.Button("Create Image")
|
500 |
svg_img=gr.Image()
|
501 |
+
url_box=gr.Textbox(label="Graph URL",interactive=True)
|
502 |
|
503 |
json_out=gr.JSON()
|
504 |
#text=gr.JSON()
|
|
|
509 |
def return_score(text):
|
510 |
print(text)
|
511 |
return text
|
512 |
+
create_im.click(create_ss,[e_box,wid,hgt],svg_img)
|
513 |
#create_im.click(return_score,score,[score],_js=score_js).then(create_image,score,svg_img)
|
514 |
#zoom_btn.change(zoom_update,zoom_btn,None)
|
515 |
upd_button.click(mm,[e_box,zoom_btn],[m_box,url_box])
|