Skip to content

How to serve gradio endpoint through an existing Api Gateway?  #1

@gmpetrov

Description

@gmpetrov

Hello

First, thanks for this great example demonstrating how to serve a Gradio app from a lambda function 👏

I can access the app from the lambda URL without any issues.

But I fail to make a call through API Gateway. Did you manage to make it work?
(it works when you create the api from _apigw.LambdaRestApi but I'd like to serve the Gradio app from an existing API)

This is how I configure an apgtw endpoint so far

handler = DockerImageFunction(...)
api_inference.add_resource("sentiment").add_method(
   "GET", apigw.LambdaIntegration(handler), authorization_type=apigw.AuthorizationType.NONE
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions