gradio
Fix the Queue to call API endpoints without internal HTTP routing
#5165
Merged

Fix the Queue to call API endpoints without internal HTTP routing #5165

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

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone