Fix login
Browse files- README.md +1 -1
- app.py +4 -1
- requirements.txt +1 -1
README.md
CHANGED
|
@@ -4,7 +4,7 @@ emoji: 🖐️
|
|
| 4 |
colorFrom: pink
|
| 5 |
colorTo: pink
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version: 5.
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: other
|
|
|
|
| 4 |
colorFrom: pink
|
| 5 |
colorTo: pink
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 5.27.1
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: other
|
app.py
CHANGED
|
@@ -239,9 +239,12 @@ def image_to_base64(image):
|
|
| 239 |
return f"data:image/png;base64,{img_base64}"
|
| 240 |
|
| 241 |
|
| 242 |
-
def generate_image(edit_image_infos, did, request: gr.Request
|
| 243 |
if not did:
|
| 244 |
did = str(uuid.uuid4())
|
|
|
|
|
|
|
|
|
|
| 245 |
user_id = request.session_hash
|
| 246 |
if not user_id:
|
| 247 |
user_id = f"{login_hash_key}{user_id}"
|
|
|
|
| 239 |
return f"data:image/png;base64,{img_base64}"
|
| 240 |
|
| 241 |
|
| 242 |
+
def generate_image(edit_image_infos, did, request: gr.Request):
|
| 243 |
if not did:
|
| 244 |
did = str(uuid.uuid4())
|
| 245 |
+
print(f"request={request.__dict__}")
|
| 246 |
+
print(f"request={request.request.__dict__}")
|
| 247 |
+
print(f"request={request.request.headers}")
|
| 248 |
user_id = request.session_hash
|
| 249 |
if not user_id:
|
| 250 |
user_id = f"{login_hash_key}{user_id}"
|
requirements.txt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
-
gradio==5.
|
| 2 |
pydantic==2.10.6
|
| 3 |
python-dotenv
|
|
|
|
| 1 |
+
gradio==5.27.1
|
| 2 |
pydantic==2.10.6
|
| 3 |
python-dotenv
|