Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,7 +43,6 @@ def chat():
|
|
| 43 |
global _id
|
| 44 |
global _cdata
|
| 45 |
if _do:
|
| 46 |
-
_do = False
|
| 47 |
start = time.time()
|
| 48 |
result = gradio_client.predict(
|
| 49 |
_x,
|
|
@@ -60,6 +59,7 @@ def chat():
|
|
| 60 |
sec = (end - start)
|
| 61 |
result_list = str(datetime.timedelta(seconds=sec)).split(".")
|
| 62 |
print("μλ΅ μκ° : " + result_list[0] +"\nx:"+ x +"\nid:"+ id +"\ncdata:" + cdata +"\nresult:"+ result)
|
|
|
|
| 63 |
return result
|
| 64 |
|
| 65 |
th_a = Thread(target = chat)
|
|
|
|
| 43 |
global _id
|
| 44 |
global _cdata
|
| 45 |
if _do:
|
|
|
|
| 46 |
start = time.time()
|
| 47 |
result = gradio_client.predict(
|
| 48 |
_x,
|
|
|
|
| 59 |
sec = (end - start)
|
| 60 |
result_list = str(datetime.timedelta(seconds=sec)).split(".")
|
| 61 |
print("μλ΅ μκ° : " + result_list[0] +"\nx:"+ x +"\nid:"+ id +"\ncdata:" + cdata +"\nresult:"+ result)
|
| 62 |
+
_do = False
|
| 63 |
return result
|
| 64 |
|
| 65 |
th_a = Thread(target = chat)
|