diff --git a/launch.py b/launch.py index 958dcba..1cab2e3 100644 --- a/launch.py +++ b/launch.py @@ -132,7 +132,7 @@ def main(api_url, ui_port): inputs=gr_inp, outputs=gr_out, title=metadata.get('name', ''), - description=inspect.cleandoc(metadata.get('description', '')), + description=ui_utils.generate_header(), article=ui_utils.generate_footer(metadata), theme=gr.themes.Default( primary_hue=gr.themes.colors.cyan, diff --git a/ui_utils.py b/ui_utils.py index f72758c..46cfabf 100644 --- a/ui_utils.py +++ b/ui_utils.py @@ -338,6 +338,18 @@ def api_call( return rout +def generate_header(): + header = f""" +
+ ℹ️ This is a temporary deployment that will automatically delete itself after + 10 minutes. To access more permanent inference options, + become a member of one of the supported projects. +
+ """ + header = inspect.cleandoc(header) + return header + + def generate_footer(metadata): # Retrieve git info