ldhldh commited on
Commit
a7feab8
β€’
1 Parent(s): c6587e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -0
app.py CHANGED
@@ -9,6 +9,7 @@ import requests, os, re, asyncio, queue
9
  import math
10
  import time
11
  import datetime
 
12
 
13
  loop = asyncio.get_event_loop()
14
  gradio_client = GrClient(os.environ.get('GrClient_url'), serialize=False)
@@ -57,7 +58,23 @@ def chat():
57
  result_list = str(datetime.timedelta(seconds=sec)).split(".")
58
  print("응닡 μ‹œκ°„ : " + result_list[0] +"\nresult:"+ result)
59
 
 
60
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
  th_a = Thread(target = chat)
62
  th_a.daemon = True
63
  th_a.start()
 
9
  import math
10
  import time
11
  import datetime
12
+ import requests, json
13
 
14
  loop = asyncio.get_event_loop()
15
  gradio_client = GrClient(os.environ.get('GrClient_url'), serialize=False)
 
58
  result_list = str(datetime.timedelta(seconds=sec)).split(".")
59
  print("응닡 μ‹œκ°„ : " + result_list[0] +"\nresult:"+ result)
60
 
61
+ data = {'outer': {'inner': 'value'}}
62
 
63
+ data = {
64
+ "version": "2.0",
65
+ "template": {
66
+ "outputs": [
67
+ {
68
+ "simpleText": {
69
+ "text": result
70
+ }
71
+ }
72
+ ]
73
+ }
74
+ }
75
+ response_collback = requests.post(arr[3], data=json.dumps(data))
76
+ print(response_collback)
77
+
78
  th_a = Thread(target = chat)
79
  th_a.daemon = True
80
  th_a.start()