Fix the Queue to call API endpoints without internal HTTP routing #5165
[WIP] Replace the HTTP call to /api/predict with a function call
6b12bcfb
Extract shared logics into route_utils.*
6870d5b1
Fix Queue.call_prediction() to return the output dict and raise excep…
86a6bbf3
Remove run_predict()
8c331c3a
Create route_utils.call_process_api()
26c2a914
Check Blocks.api_open and return 404 if it's false
35798685
Refactoring on queueing.py
3cdb5ba6
Refactoring on queueing.py, renaming data to body
cfab3fd9
whitphx
force pushed
to
cfab3fd9
2 years ago
Fix the if block of availability check in the predict() endpoint handler
4e96a458
Merge branch 'main' into queue-api-call-wo-http-2
4c33ea6d
Put the code of clearning pending streams into route_utils.call_proce…
48d3cf06
Format gradio/routes.py
ffccfb74
Fix queueing.Queue.reset_iterators() not to call an HTTP endpoint
50085233
Remove ququeing.Queue.queue_client, which is no longer used
f08b5d6b
Fix with static type analysis
791fe203
Remove gradio.utils.AsyncRequest, which is no longer used
11c952a4
whitphx
force pushed
from
802e0aab
to
11c952a4
2 years ago
add changeset
8cada056
Remove PEP604-syntax which is not supported by Python<3.10
6368450d
Fix gradio/queueing.py
a80d1612
Remove AsyncRequest test cases
46aeab6f
Fix queueing and routes test cases
37d0a60b
whitphx
force pushed
to
37d0a60b
2 years ago
Fix
9c8d7679
Replace Queue.server_url with .server_app and remove methods related …
137848db
Revert `gradio_api_url` because building the document fails
43c12cc2
whitphx
force pushed
to
43c12cc2
2 years ago
whitphx
marked this pull request as ready for review 2 years ago
Merge branch 'main' into queue-api-call-wo-http
a0667ab3
Add __future__.annotations to route_utils.py
1dc9cf0c
Update gradio/queueing.py
c9b0596c
Format
f780a683
Mark the `gradio_api_url` parameter of `mount_gradio_app()` deprecated
29a74c66
Merge branch 'main' into queue-api-call-wo-http
bb43da58
Fix Queue.call_prediction to convert the output to a plain object
9f51ac6a
whitphx
force pushed
from
025d47d0
to
9f51ac6a
2 years ago
abidlabs
approved these changes
on 2023-08-30
Add a `except asyncio.CancelledError` handler to avoid printing stack…
0b2c42c2
Move the call of `route_utils.restore_session_state` into `route_util…
73f63be3
Merge branch 'main' into queue-api-call-wo-http
9cb4f645
exception class
53d70259
Merge branch 'main' into queue-api-call-wo-http
4ae308b3
abidlabs
merged
c77f05ab
into main 2 years ago
whitphx
deleted the queue-api-call-wo-http branch 2 years ago
Assignees
No one assigned
Login to write a write a comment.
Login via GitHub