Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion decart/realtime/messages.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from typing import Literal, Optional, Union, Annotated
from pydantic import BaseModel, Field, TypeAdapter


# Incoming Messages (from server)


Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ dev = [
"pytest>=7.0.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.0.0",
"black>=23.0.0",
"black>=26.10.1",
"ruff>=0.1.0",
"mypy>=1.0.0",
]
Expand Down Expand Up @@ -96,7 +96,7 @@ dev = [
"pytest>=7.0.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.0.0",
"black>=23.0.0",
"black>=26.10.1",
"ruff>=0.1.0",
"mypy>=1.0.0",
]
Expand Down
24 changes: 8 additions & 16 deletions test_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,14 +209,12 @@ def create_ui():
.status-error { color: red; }
""",
) as demo:
gr.Markdown(
"""
gr.Markdown("""
# Decart SDK Test UI

Interactive testing interface for the Decart Python SDK.
Enter your API key below to get started.
"""
)
""")

# API Key input (shared across all tabs)
api_key = gr.Textbox(
Expand Down Expand Up @@ -291,15 +289,13 @@ def create_ui():
# Video Restyle Tab (NEW - with reference image support)
# ================================================================
with gr.TabItem("Video Restyle (NEW)"):
gr.Markdown(
"""
gr.Markdown("""
### Video Restyle with Prompt OR Reference Image

This model supports two modes:
- **Text Prompt**: Describe the style you want
- **Reference Image**: Upload an image to use as style reference
"""
)
""")

with gr.Row():
with gr.Column():
Expand Down Expand Up @@ -363,14 +359,12 @@ def toggle_mode(use_ref):
# Tokens Tab
# ================================================================
with gr.TabItem("Tokens"):
gr.Markdown(
"""
gr.Markdown("""
### Create Client Token

Create a short-lived token for client-side use.
These tokens are meant for temporary access and expire automatically.
"""
)
""")

with gr.Row():
with gr.Column():
Expand All @@ -388,13 +382,11 @@ def toggle_mode(use_ref):
outputs=[token_output],
)

gr.Markdown(
"""
gr.Markdown("""
---
**Note**: This UI uses the Decart Python SDK.
For realtime/WebRTC features, use the example scripts in `examples/`.
"""
)
""")

return demo

Expand Down
Loading
Loading