Yingxu He commited on
Commit
f3c0178
·
verified ·
1 Parent(s): 5e69eac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -25,7 +25,7 @@ def respond(
25
  progress(0, desc="Starting")
26
 
27
  if endpoint.status != "running":
28
- endpoint.client.post({
29
  "inputs": "wake up!"
30
  })
31
  progress(0.25, desc="Waking up model")
@@ -53,7 +53,7 @@ def respond(
53
  # stream=True,
54
  )
55
 
56
- response = endpoint.client.post({
57
  "inputs": turn_breaker.join(all_messages),
58
  "parameters": generation_kwargs
59
  })
 
25
  progress(0, desc="Starting")
26
 
27
  if endpoint.status != "running":
28
+ endpoint.client.post(json={
29
  "inputs": "wake up!"
30
  })
31
  progress(0.25, desc="Waking up model")
 
53
  # stream=True,
54
  )
55
 
56
+ response = endpoint.client.post(json={
57
  "inputs": turn_breaker.join(all_messages),
58
  "parameters": generation_kwargs
59
  })