Skip to content

Commit

Permalink
Update ddgo_video.py
Browse files Browse the repository at this point in the history
  • Loading branch information
taowang1993 authored Nov 16, 2024
1 parent ded7237 commit 5f8806c
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ def _invoke(self, user_id: str, tool_parameters: dict[str, Any]) -> list[ToolInv
if embed_html:
# Replace fixed dimensions with responsive wrapper and iframe
embed_html = """
<div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; border-radius: 8px;">
<div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: \
hidden; max-width: 100%; border-radius: 8px;">
<iframe
style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;"
src="{src}"
Expand All @@ -58,4 +59,5 @@ def _invoke(self, user_id: str, tool_parameters: dict[str, Any]) -> list[ToolInv

json_result.append(self.create_json_message(res))

return [self.create_text_message(markdown_result)] + json_result
return [self.create_text_message(markdown_result)] + json_result

0 comments on commit 5f8806c

Please sign in to comment.