Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,6 +6,10 @@ from PIL import Image
|
|
6 |
import gradio as gr
|
7 |
from huggingface_hub import InferenceClient
|
8 |
|
|
|
|
|
|
|
|
|
9 |
# """
|
10 |
# For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
11 |
# """
|
@@ -65,10 +69,10 @@ def respond(message, history):
|
|
65 |
outputs += output
|
66 |
yield outputs
|
67 |
else:
|
68 |
-
|
69 |
# Call non-stream response and return message output
|
70 |
response = vq.submit_query(message)
|
71 |
-
|
72 |
return response
|
73 |
|
74 |
def random_fun(message, history):
|
|
|
6 |
import gradio as gr
|
7 |
from huggingface_hub import InferenceClient
|
8 |
|
9 |
+
import logging
|
10 |
+
logging.basicConfig(level=logging.DEBUG)
|
11 |
+
|
12 |
+
|
13 |
# """
|
14 |
# For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
15 |
# """
|
|
|
69 |
outputs += output
|
70 |
yield outputs
|
71 |
else:
|
72 |
+
logging.debug("Calling normal query with message: {message}")
|
73 |
# Call non-stream response and return message output
|
74 |
response = vq.submit_query(message)
|
75 |
+
logging.debug("Chat response: {response}")
|
76 |
return response
|
77 |
|
78 |
def random_fun(message, history):
|