Skip to content

Commit

Permalink
minor text fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesfrye authored Sep 23, 2024
1 parent 3b8cc90 commit ee53c18
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion 01_getting_started/generators.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# # Run a generator function on Modal

# This example shows how you can run a generator function on Modal. We define a
# function that yields values and then call it with the [`remote_gen`](https://modal.com/docs/reference/modal.Function#remote_gen) method. The
# function that `yields` values and then call it with the [`remote_gen`](https://modal.com/docs/reference/modal.Function#remote_gen) method. The
# `remote_gen` method returns a generator object that can be used to iterate over
# the values produced by the function.

Expand Down
4 changes: 2 additions & 2 deletions 05_scheduling/schedule_simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
# This example shows how you can schedule remote jobs on Modal.
# You can do this either with:
#
# - [modal.Period](https://modal.com/docs/reference/modal.Period) - a time interval between function calls.
# - [modal.Cron](https://modal.com/docs/reference/modal.Cron) - a cron expression to specify the schedule.
# - [`modal.Period`](https://modal.com/docs/reference/modal.Period) - a time interval between function calls.
# - [`modal.Cron`](https://modal.com/docs/reference/modal.Cron) - a cron expression to specify the schedule.

# In the code below, the first function runs every
# 5 seconds, and the second function runs every minute. We use the `schedule`
Expand Down
2 changes: 1 addition & 1 deletion 07_web_endpoints/count_faces.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# lambda-test: false
# ---

# Run opencv face detection on an image
# Run OpenCV face detection on an image

# This example shows how you can use OpenCV on Modal to detect faces in an image. We use
# the `opencv-python` package to load the image and the `opencv` library to
Expand Down
2 changes: 1 addition & 1 deletion 07_web_endpoints/fastapi_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# # Deploy FastAPI app with Modal

# This example shows how you can deploy a [FastAPI](https://fastapi.tiangolo.com/) app with Modal.
# You can serve any app written in an ASGI or WSGI-compatible web framework (like FastAPI) on Modal.
# You can serve any app written in an ASGI-compatible web framework (like FastAPI) using this pattern or you can server WSGI-compatible frameworks like Flask with [`wsgi_app`](https://modal.com/docs/guide/webhooks#wsgi).

from typing import Optional

Expand Down
2 changes: 1 addition & 1 deletion 07_web_endpoints/fasthtml_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# # Deploy a FastHTML app with Modal

# This example shows how you can deploy a FastHTML app with Modal.
# [FastHTML](https://www.fastht.ml/) is a Python library that allows you to create HTML elements using Python code.
# [FastHTML](https://www.fastht.ml/) is a Python library that allows you to create entire web applications using only Python.


import modal
Expand Down
2 changes: 1 addition & 1 deletion 07_web_endpoints/flask_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# # Deploy Flask app with Modal

# This example shows how you can deploy a [Flask](https://flask.palletsprojects.com/en/3.0.x/) app with Modal.
# You can serve any app written in an ASGI or WSGI-compatible web framework (like Flask) on Modal.
# You can serve any app written in a WSGI-compatible web framework (like Flask) on Modal with this pattern. You can serve an app written in an ASGI-compatible framework, like FastAPI, with [`asgi_app`](https://modal.com/docs/guide/webhooks#asgi).

import modal

Expand Down
2 changes: 1 addition & 1 deletion 08_advanced/parallel_execution.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# # Parallel Execution on Modal
# # Parallel execution on Modal with `spawn`

# This example shows how you can run multiple functions in parallel on Modal.
# We use the `spawn` method to start a function and return a handle to its result.
Expand Down
2 changes: 1 addition & 1 deletion misc/lmdeploy_oai_compatible.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# # Deploy a model with lmdeploy
# # Deploy a model with `lmdeploy`
#
# This script is used to deploy a model using [lmdeploy](https://github.com/InternLM/lmdeploy) with OpenAI compatible API.

Expand Down

0 comments on commit ee53c18

Please sign in to comment.