
    &`i                        d dl Z d dlmZ d dlmZ d dlmZ d dlmZ d dl	m
Z
 	 d dlmZmZ n# e$ r  ed            w xY w e j        e          Z e
d	
           G d de                      Z ej        e          ZdS )    N)Callable)serve)SERVE_LOGGER_NAME)ASGIAppReplicaWrapper)	PublicAPI)BlocksrouteszCGradio isn't installed. Run `pip install gradio` to install Gradio.alpha)	stabilityc                   8     e Zd ZdZdeg ef         f fdZ xZS )GradioIngressz@User-facing class that wraps a Gradio App in a Serve Deployment.builderc                      |            }t                                          t          j                            |                     dS )zBuilds and wraps an ASGI app from the provided builder.

        The builder should take no arguments and return a Gradio App (of type Interface
        or Blocks).
        N)super__init__r	   App
create_app)selfr   io	__class__s      q/home/jaya/work/projects/VOICE-AGENT/VIET/agent-env/lib/python3.11/site-packages/ray/serve/gradio_integrations.pyr   zGradioIngress.__init__   s>     WYY..r2233333    )__name__
__module____qualname____doc__r   r   r   __classcell__)r   s   @r   r   r      sS        JJ4V 4 4 4 4 4 4 4 4 4 4 4r   r   )loggingtypingr   rayr   ray.serve._private.constantsr   ray.serve._private.http_utilr   ray.util.annotationsr   gradior   r	   ModuleNotFoundErrorprint	getLoggerloggerr   
deploymentGradioServer r   r   <module>r,      s)                : : : : : : > > > > > > * * * * * *
%%%%%%%%% 
 
 
	E
OPPP	
 
	,	-	- W
4 
4 
4 
4 
4) 
4 
4 
4  u..s   - ?