From 1efd96d6bbf4f5c8ad353933d0efaa23ae0edbc8 Mon Sep 17 00:00:00 2001 From: bygimenez Date: Sun, 22 Sep 2024 10:05:08 +0200 Subject: [PATCH 1/3] fix: :ambulance: fix search models --- tabs/login/login.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 tabs/login/login.py diff --git a/tabs/login/login.py b/tabs/login/login.py new file mode 100644 index 00000000..01bc48be --- /dev/null +++ b/tabs/login/login.py @@ -0,0 +1,22 @@ +import gradio as gr + +from assets.i18n.i18n import I18nAuto + +i18n = I18nAuto() + + +def login_tab(): + gr.Markdown( + value=i18n( + "## Login" + ) + ) + gr.Markdown( + value=i18n( + "Login with Applio to be able to save information about your models. We will never collect personal information." + ) + ) + + gr.Button(i18n("Login with Discord")) + gr.Button(i18n("Login with Google")) + gr.Button(i18n("Login with GitHub")) From cc01aa48ebf16ad501a15f89a09254a1c80c983a Mon Sep 17 00:00:00 2001 From: bygimenez Date: Sun, 22 Sep 2024 10:08:50 +0200 Subject: [PATCH 2/3] fix: :ambulance: fix models search --- tabs/download/download.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tabs/download/download.py b/tabs/download/download.py index aafbb754..fe9d5c32 100644 --- a/tabs/download/download.py +++ b/tabs/download/download.py @@ -59,7 +59,7 @@ def save_drop_model(dropbox): def search_models(name): url = f"https://cjtfqzjfdimgpvpwhzlv.supabase.co/rest/v1/models?name=ilike.%25{name}%25&order=created_at.desc&limit=15" headers = { - "apikey": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImNqdGZxempmZGltZ3B2cHdoemx2Iiwicm9sZSI6ImFub24iLCJpYXQiOjE2OTUxNjczODgsImV4cCI6MjAxMDc0MzM4OH0.7z5WMIbjR99c2Ooc0ma7B_FyGq10G8X-alkCYTkKR10" + "apikey": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImNqdGZxempmZGltZ3B2cHdoemx2Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3MjY5MjYxMzQsImV4cCI6MjA0MjUwMjEzNH0.OyDXlhvH6D-IsHiWhPAGUtsPGGUvWQynfxUeQwfYToE" } response = requests.get(url, headers=headers) data = response.json() From 12a9e6ad57b94f2134e9ef45b877dab84812a4e2 Mon Sep 17 00:00:00 2001 From: bygimenez Date: Sun, 22 Sep 2024 10:11:21 +0200 Subject: [PATCH 3/3] fix: :bug: fix --- tabs/login/login.py | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 tabs/login/login.py diff --git a/tabs/login/login.py b/tabs/login/login.py deleted file mode 100644 index 01bc48be..00000000 --- a/tabs/login/login.py +++ /dev/null @@ -1,22 +0,0 @@ -import gradio as gr - -from assets.i18n.i18n import I18nAuto - -i18n = I18nAuto() - - -def login_tab(): - gr.Markdown( - value=i18n( - "## Login" - ) - ) - gr.Markdown( - value=i18n( - "Login with Applio to be able to save information about your models. We will never collect personal information." - ) - ) - - gr.Button(i18n("Login with Discord")) - gr.Button(i18n("Login with Google")) - gr.Button(i18n("Login with GitHub"))