a
    d?                  	   @  sH   d dl mZ d dlZd dlmZ dd Zdddddddddd	d
ZdS )    )annotationsN)
ThemeClassc                  C  s   t jdd} | jdtdd | jdtdd | jdtd	d | jd
tdd | jdtdd | jdtdd | jdtdd |  }t|j|j|j|j	|j
|j|j d S )NzUpload a demo to a space)descriptionthemezTheme json file)typehelp	repo_namezHF repo name to store the themez
--org_nameu   The name of the org to save the space in. If None (the default), the username corresponding to the logged in user, or hƒ_token is used.z	--versionzSemver versionz
--hf_tokenzHF Tokenz--theme-namezName of theme.z--descriptionzDescription of theme)argparseArgumentParseradd_argumentstr
parse_argsupload_themer   r   org_nameversionhf_token
theme_namer   )parserargs r   c/var/www/html/stable-diffusion-webui/venv/lib/python3.9/site-packages/gradio/themes/upload_theme.pymain   s<    r   r   z
str | Noner   r   r   r   r   r   r   c                 C  s    t | } | j||||||dS )N)r   r   r   r   r   r   )r   loadZpush_to_hubr   r   r   r   r   )   s    	
r   )NNNNN)
__future__r   r	   Zgradio.themesr   r   r   r   r   r   r   <module>   s   $     