Spaces:
Paused
Paused
update
Browse files
app.py
CHANGED
@@ -9,8 +9,8 @@ import requests
|
|
9 |
from utils import build_logger
|
10 |
import io
|
11 |
|
12 |
-
LOGDIR = "log"
|
13 |
-
logger = build_logger("otter", LOGDIR)
|
14 |
|
15 |
# no_change_btn = gr.Button.update()
|
16 |
# enable_btn = gr.Button.update(interactive=True)
|
@@ -73,7 +73,7 @@ def resize_image(image, max_size):
|
|
73 |
|
74 |
|
75 |
def http_bot(image_input, text_input, request: gr.Request):
|
76 |
-
|
77 |
print(f"Prompt request: {text_input}")
|
78 |
|
79 |
base64_image_str = encode_image(image_input)
|
|
|
9 |
from utils import build_logger
|
10 |
import io
|
11 |
|
12 |
+
# LOGDIR = "log"
|
13 |
+
# logger = build_logger("otter", LOGDIR)
|
14 |
|
15 |
# no_change_btn = gr.Button.update()
|
16 |
# enable_btn = gr.Button.update(interactive=True)
|
|
|
73 |
|
74 |
|
75 |
def http_bot(image_input, text_input, request: gr.Request):
|
76 |
+
print(f"http_bot. ip: {request.client.host}")
|
77 |
print(f"Prompt request: {text_input}")
|
78 |
|
79 |
base64_image_str = encode_image(image_input)
|