Skip to content

Commit

Permalink
show "Public" visibility for already public published runs in team wo…
Browse files Browse the repository at this point in the history
…rkspace

selectively enables showing "Public" visibility for public examples
  • Loading branch information
nikochiko committed Jan 9, 2025
1 parent a7f73f5 commit d452481
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions daras_ai_v2/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,10 @@ def _render_share_modal(self, dialog: gui.AlertDialogRef):
for enum in PublishedRunVisibility.choices_for_workspace(
self.current_pr.workspace
)
} | {
str(self.current_pr.visibility): PublishedRunVisibility(
self.current_pr.visibility
).help_text(self.current_pr.workspace)
}
published_run_visibility = PublishedRunVisibility(
int(
Expand Down

0 comments on commit d452481

Please sign in to comment.