Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -41,6 +41,7 @@ def chat():
|
|
41 |
if not q.empty():
|
42 |
arr = q.get()
|
43 |
start = time.time()
|
|
|
44 |
result = gradio_client.predict(
|
45 |
arr[0],
|
46 |
# str representing input in 'User input' Textbox component
|
@@ -55,7 +56,7 @@ def chat():
|
|
55 |
|
56 |
sec = (end - start)
|
57 |
result_list = str(datetime.timedelta(seconds=sec)).split(".")
|
58 |
-
print("μλ΅ μκ° : " + result_list[0] +"\
|
59 |
|
60 |
|
61 |
th_a = Thread(target = chat)
|
|
|
41 |
if not q.empty():
|
42 |
arr = q.get()
|
43 |
start = time.time()
|
44 |
+
print("μλ΅ μμ\nx:"+ arr[0] +"\nid:"+ arr[1] +"\ncdata:" + arr[2] + "\ncollback_url : " + arr[3])
|
45 |
result = gradio_client.predict(
|
46 |
arr[0],
|
47 |
# str representing input in 'User input' Textbox component
|
|
|
56 |
|
57 |
sec = (end - start)
|
58 |
result_list = str(datetime.timedelta(seconds=sec)).split(".")
|
59 |
+
print("μλ΅ μκ° : " + result_list[0] +"\nresult:"+ result)
|
60 |
|
61 |
|
62 |
th_a = Thread(target = chat)
|