Skip to content

Commit

Permalink
fix: add serialization listeners for classes (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
isidentical authored Jan 24, 2024
1 parent 89c69a5 commit 2aed849
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions projects/fal/src/fal/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import inspect
import os
import fal.api
from fal._serialization import add_serialization_listeners_for
from contextlib import asynccontextmanager
from fal.toolkit import mainify
from fastapi import FastAPI
Expand All @@ -14,6 +15,8 @@


def wrap_app(cls: type[App], **kwargs) -> fal.api.IsolatedFunction:
add_serialization_listeners_for(cls)

def initialize_and_serve():
app = cls()
app.serve()
Expand Down

0 comments on commit 2aed849

Please sign in to comment.