mirror of
https://github.com/ParisNeo/lollms.git
synced 2024-12-19 12:47:58 +00:00
fixed take a photo
This commit is contained in:
parent
be9fdafce8
commit
c5bd7dc42b
@ -113,7 +113,9 @@ def take_photo(processor, client, use_ui=False):
|
|||||||
fn = image/f"screen_shot_{index}.png"
|
fn = image/f"screen_shot_{index}.png"
|
||||||
cv2.imwrite(str(fn), frame)
|
cv2.imwrite(str(fn), frame)
|
||||||
client.discussion.image_files.append(fn)
|
client.discussion.image_files.append(fn)
|
||||||
return f'<img src="{discussion_path_to_url(fn_view)}" width="80%"></img>'
|
processor.full(f'<img src="{discussion_path_to_url(fn_view)}" width="80%"></img>')
|
||||||
|
processor.new_message("")
|
||||||
|
return "Image shot successful"
|
||||||
|
|
||||||
|
|
||||||
def take_a_photo_function(processor, client, use_ui = False):
|
def take_a_photo_function(processor, client, use_ui = False):
|
||||||
|
Loading…
Reference in New Issue
Block a user