[App] Rename gradio.py gradio_server.py (#16201)

This commit is contained in:
Akihiro Nitta 2023-01-14 14:00:37 +01:00 committed by GitHub
parent 0b94d1da11
commit fa73327828
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 8 additions and 8 deletions

View File

@ -21,5 +21,5 @@ ___________________
~python.popen.PopenPythonScript
~python.tracer.TracerPythonScript
~training.LightningTrainerScript
~serve.gradio.ServeGradio
~serve.gradio_server.ServeGradio
~serve.serve.ModelInferenceAPI

View File

@ -37,7 +37,7 @@ ___________________
~python.popen.PopenPythonScript
~python.tracer.TracerPythonScript
~training.LightningTrainerScript
~serve.gradio.ServeGradio
~serve.gradio_server.ServeGradio
~serve.serve.ModelInferenceAPI
~serve.python_server.PythonServer
~serve.streamlit.ServeStreamlit

View File

@ -73,7 +73,7 @@ module = [
"lightning_app.components.database.utilities",
"lightning_app.components.python.popen",
"lightning_app.components.python.tracer",
"lightning_app.components.serve.gradio",
"lightning_app.components.serve.gradio_server",
"lightning_app.components.serve.serve",
"lightning_app.components.serve.streamlit",
"lightning_app.components.serve.types.image",

View File

@ -16,6 +16,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
- The LoadBalancer now uses internal ip + port instead of URL exposed ([#16119](https://github.com/Lightning-AI/lightning/pull/16119))
- Added support for logging in different trainer stages with `DeviceStatsMonitor`
([#16002](https://github.com/Lightning-AI/lightning/pull/16002))
- Changed `lightning_app.components.serve.gradio` to `lightning_app.components.serve.gradio_server` ([#16201](https://github.com/Lightning-AI/lightning/pull/16201))
- Made cluster creation/deletion async by default ([#16185](https://github.com/Lightning-AI/lightning/pull/16185))
@ -25,7 +26,6 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
- Avoid `relpath` bug on Windows ([#16164](https://github.com/Lightning-AI/lightning/pull/16164))
- Avoid using the deprecated `LooseVersion` ([#16162](https://github.com/Lightning-AI/lightning/pull/16162))
- Porting fixes to autoscaler component ([#16249](https://github.com/Lightning-AI/lightning/pull/16249))
- Fixed a bug where `lightning login` with env variables would not correctly save the credentials ([#16339](https://github.com/Lightning-AI/lightning/pull/16339))

View File

@ -10,7 +10,7 @@ from lightning_app.components.python.popen import PopenPythonScript
from lightning_app.components.python.tracer import Code, TracerPythonScript
from lightning_app.components.serve.auto_scaler import AutoScaler
from lightning_app.components.serve.cold_start_proxy import ColdStartProxy
from lightning_app.components.serve.gradio import ServeGradio
from lightning_app.components.serve.gradio_server import ServeGradio
from lightning_app.components.serve.python_server import Category, Image, Number, PythonServer, Text
from lightning_app.components.serve.serve import ModelInferenceAPI
from lightning_app.components.serve.streamlit import ServeStreamlit

View File

@ -1,6 +1,6 @@
from lightning_app.components.serve.auto_scaler import AutoScaler
from lightning_app.components.serve.cold_start_proxy import ColdStartProxy
from lightning_app.components.serve.gradio import ServeGradio
from lightning_app.components.serve.gradio_server import ServeGradio
from lightning_app.components.serve.python_server import Category, Image, Number, PythonServer, Text
from lightning_app.components.serve.streamlit import ServeStreamlit

View File

@ -4,10 +4,10 @@ from unittest.mock import ANY
@mock.patch.dict(os.environ, {"LIGHTING_TESTING": "1"})
@mock.patch("lightning_app.components.serve.gradio.gradio")
@mock.patch("lightning_app.components.serve.gradio_server.gradio")
def test_serve_gradio(gradio_mock):
from lightning_app.components.serve.gradio import ServeGradio
from lightning_app.components.serve.gradio_server import ServeGradio
class MyGradioServe(ServeGradio):