Skip to content

Commit

Permalink
Update poept.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Saikyo0 authored Jul 21, 2024
1 parent d15b921 commit db81474
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions poept/poept.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,10 @@ def ask(self,
msg = self.driver.find_element(By.XPATH, f"(//div[@class='{self.msg_element[1:]}'])[last()]")
if msg.get_attribute("data-complete") == "true": break

self.response = '\n'.join(msg.text.split('\n')[2:])
if img_output:
self.response = msg.find_element(By.CSS_SELECTOR, self.msg_image).get_attribute("src")
self.response += msg.find_element(By.CSS_SELECTOR, self.msg_image).get_attribute("src")

self.response += '\n'.join(msg.text.split('\n')[2:])
self.status = "ready"
return self.response

Expand Down

0 comments on commit db81474

Please sign in to comment.