Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,8 +14,6 @@ import requests
|
|
| 14 |
|
| 15 |
load_dotenv(verbose=True)
|
| 16 |
|
| 17 |
-
avartar = ""
|
| 18 |
-
|
| 19 |
# Initialize Qdrant and Cohere clients
|
| 20 |
client = QdrantClient(url=os.environ.get("QDRANT_URL"), api_key=os.environ.get("QDRANT_API_KEY"))
|
| 21 |
cohere_client = cohere.Client(api_key=os.environ.get("COHERE_API_KEY"))
|
|
@@ -66,9 +64,6 @@ def list_private_models(profile: gr.OAuthProfile | None, oauth_token: gr.OAuthTo
|
|
| 66 |
state.value["loginuser"] = userinfo
|
| 67 |
state.value["picture"] = profile.picture
|
| 68 |
|
| 69 |
-
global avartar
|
| 70 |
-
avartar = profile.picture
|
| 71 |
-
|
| 72 |
print("pic:",state.value["picture"],profile.picture)
|
| 73 |
print("login-user:",state.value["loginuser"],userinfo)
|
| 74 |
|
|
@@ -250,7 +245,7 @@ with gr.Blocks(css="footer {visibility: hidden;} .custom-image {width: 64px; hei
|
|
| 250 |
|
| 251 |
with gr.Sidebar(open=False):
|
| 252 |
#gr.Image(value=oauth_profile.picture, elem_classes=["custom-image"])
|
| 253 |
-
|
| 254 |
gr.HTML("""
|
| 255 |
<!DOCTYPE html>
|
| 256 |
<html lang="ja">
|
|
|
|
| 14 |
|
| 15 |
load_dotenv(verbose=True)
|
| 16 |
|
|
|
|
|
|
|
| 17 |
# Initialize Qdrant and Cohere clients
|
| 18 |
client = QdrantClient(url=os.environ.get("QDRANT_URL"), api_key=os.environ.get("QDRANT_API_KEY"))
|
| 19 |
cohere_client = cohere.Client(api_key=os.environ.get("COHERE_API_KEY"))
|
|
|
|
| 64 |
state.value["loginuser"] = userinfo
|
| 65 |
state.value["picture"] = profile.picture
|
| 66 |
|
|
|
|
|
|
|
|
|
|
| 67 |
print("pic:",state.value["picture"],profile.picture)
|
| 68 |
print("login-user:",state.value["loginuser"],userinfo)
|
| 69 |
|
|
|
|
| 245 |
|
| 246 |
with gr.Sidebar(open=False):
|
| 247 |
#gr.Image(value=oauth_profile.picture, elem_classes=["custom-image"])
|
| 248 |
+
|
| 249 |
gr.HTML("""
|
| 250 |
<!DOCTYPE html>
|
| 251 |
<html lang="ja">
|