Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken demo and security links in README.md #1144

Merged
merged 1 commit into from
Dec 10, 2024
Merged
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
14 changes: 5 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,27 +30,23 @@ Mesop is a Python-based UI framework that allows you to rapidly build web apps l

## Write your first Mesop app in less than 10 lines of code...

[Demo app](https://google.github.io/mesop/demo/?demo=text_io)
[Demo app](https://google.github.io/mesop/demo/?demo=text_to_text)

```python
import time

import mesop as me
import mesop.labs as mel


@me.page(path="/text_to_text", title="Text I/O Example")
@me.page(path="/text_to_text", title="Text to Text Example")
def app():
mel.text_to_text(
upper_case_stream,
title="Text I/O Example",
title="Text to Text Example",
)


def upper_case_stream(s: str):
yield s.capitalize()
time.sleep(0.5)
yield "Done"
return "Echo: " + s.capitalize()
```

</div>
Expand Down Expand Up @@ -81,7 +77,7 @@ Learn more in [Getting Started](https://google.github.io/mesop/getting-started/i

## Reporting a security issue

If you identify a security vulnerability with Mesop, please file a [GitHub security issue](https://github.com/google/mesop/security/advisories/new) and we will promptly respond to it.
If you identify a security vulnerability with Mesop, please file a [GitHub security issue](https://github.com/google/mesop/security/policy) and we will promptly respond to it.

## Disclaimer

Expand Down
Loading