
    AF[i                     8   d dl Z d dlZd dlmZ d dlmZ ddlmZmZm	Z	m
Z
mZmZmZmZ  ej                         Zej#                  e
d        ej%                  dd	
      e        ej%                  dd
      e        ej%                  dd
      e       d Zy)    N)Console)	analytics   )custom_componentdeployhf_loginload_appprint_environment_inforeloadsketch
upload_mcpload)nameenvironmentz%Print Gradio environment information.)helpr   zpDeploy a Gradio app to Spaces or Google Cloud Run. Must be called within the directory you would like to deploy.r   z+Open the Sketch app to design a Gradio app.c                     t         j                  dd  } t        |       dk(  rt        d      | d   dv rt	                y | d   dv r't         j                  dd  t         _        t                y | d   dv r!	 d| d    d| d    d	| d    d
}t        |      | d   dv rt        | d   | d          y | d   dk(  rdd l	}ddl
m} d|j                  d<   t        j                          t        |       dk(  r |d      n
 || d         }|j                         s7d}t!        |d      5 }|j#                  |       d d d        t%        d| d       t%        d       t'                dt)        |      gt         _        t+        j,                  t.               y t+        j,                  t.               y # t        $ r t               }|j                          Y y w xY w# 1 sw Y   xY w)Nr   r   zNo file specified.>   deploy-discordr   r   r   r   >   cc	component>   devshowbuildcreateinstallpublishzgradio z1 is not a valid command. Did you mean `gradio cc z` or `gradio component z`?.>   
upload-mcp   z--vibe)Path1GRADIO_VIBE_MODEzdemo.pyzFimport gradio as gr

with gr.Blocks() as demo:
    pass

demo.launch()wzCreated z with default Gradio template.u   
⚠️  WARNING: Vibe editor mode is enabled. Anyone who can access the Gradio endpoint can modify files and run arbitrary code on the host machine. Use with caution!
gradio)sysargvlen
ValueErrorappr   r   print_exceptionr   ospathlibr   environr   vibe_analyticsexistsopenwriteprintr   strtyperrunr   )argserrorconsoler)   r   	demo_pathtemplate_contentfs           W/var/www/html/chatbot/moweb-chatbot/venv/lib/python3.12/site-packages/gradio/cli/cli.pyclir;      s   88AB<D
4yA~-..AwOO	a'	'88AB<	aL	L	&d1gY&WX\]^X_W``wx|}~x  xA  AD  EEU## 
aN	"47DG$	aH	 ),

%&  "'*4yA~DO4Q=	!  i% *()*HYK'EFG y	
 	
c)n-		&		&E  	&iG##%	&** *s   5 F+ #G+#GGG)r#   r2   rich.consoler   r"   r   commandsr   r   r   r	   r
   r   r   r   Typerr'   	add_typercommandr;        r:   <module>rC      s    
    	 	 	 ekkm hV $ HM G H	{   	
 JHH I& Q/rB   