Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -61,7 +61,7 @@ def run_script(html: str, style: str):
|
|
| 61 |
driver.quit()
|
| 62 |
|
| 63 |
#return [Image.open(BytesIO(screenshot)), 'operation success.',cookie_jar,html]
|
| 64 |
-
return [Image.open('tmp.png'), 'operation success.',
|
| 65 |
else:
|
| 66 |
return [None, 'Please enter a valid URL of a website/host.',None,None]
|
| 67 |
|
|
@@ -85,7 +85,7 @@ with gr.Blocks() as app:
|
|
| 85 |
outim = gr.Image()
|
| 86 |
with gr.Column():
|
| 87 |
outp = gr.Textbox()
|
| 88 |
-
cook = gr.
|
| 89 |
html=gr.Textbox()
|
| 90 |
btn.click(run_script,[inp,style],[outim,outp,cook,html])
|
| 91 |
app.launch()
|
|
|
|
| 61 |
driver.quit()
|
| 62 |
|
| 63 |
#return [Image.open(BytesIO(screenshot)), 'operation success.',cookie_jar,html]
|
| 64 |
+
return [Image.open('tmp.png'), 'operation success.',url,html]
|
| 65 |
else:
|
| 66 |
return [None, 'Please enter a valid URL of a website/host.',None,None]
|
| 67 |
|
|
|
|
| 85 |
outim = gr.Image()
|
| 86 |
with gr.Column():
|
| 87 |
outp = gr.Textbox()
|
| 88 |
+
cook = gr.Textbox()
|
| 89 |
html=gr.Textbox()
|
| 90 |
btn.click(run_script,[inp,style],[outim,outp,cook,html])
|
| 91 |
app.launch()
|