Omnibus commited on
Commit
b7aabc8
·
verified ·
1 Parent(s): 636eb39

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,11 +1,11 @@
1
  #from __future__ import annotations
2
  from selenium import webdriver
3
- from PIL import Image
4
  import gradio as gr
5
  import uuid
6
  import re
7
  from PIL import Image
8
  from io import BytesIO
 
9
  from selenium.common.exceptions import WebDriverException
10
  from selenium.webdriver.common.keys import Keys
11
  from selenium.webdriver.common.by import By
@@ -59,8 +59,8 @@ def run_script(url: str, height: int, width: int):
59
  print (len(messages))
60
  for i,mes in enumerate(messages):
61
  print (mes.text)
62
- mes_shot = obj.screenshot(f'{i}{uid}-tmp.png')
63
- mes_box.append(mes_shot)
64
  #obj = driver.find_element(By.ID, "app-container")
65
  #obj = driver.find_element(By.ID, "conversation-feed")
66
  #obj = driver.find_element_by_id("in_html")
 
1
  #from __future__ import annotations
2
  from selenium import webdriver
 
3
  import gradio as gr
4
  import uuid
5
  import re
6
  from PIL import Image
7
  from io import BytesIO
8
+ from pathlib import Path
9
  from selenium.common.exceptions import WebDriverException
10
  from selenium.webdriver.common.keys import Keys
11
  from selenium.webdriver.common.by import By
 
59
  print (len(messages))
60
  for i,mes in enumerate(messages):
61
  print (mes.text)
62
+ obj.screenshot(f'{i}-{uid}-tmp.png')
63
+ mes_box.append(f'{i}-{uid}-tmp.png')
64
  #obj = driver.find_element(By.ID, "app-container")
65
  #obj = driver.find_element(By.ID, "conversation-feed")
66
  #obj = driver.find_element_by_id("in_html")