Yingxu He
commited on
Update app.py
Browse files
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 |
})
|