From 77cfbdeca7036ee34f7e3bddd1332ca6ef9f972f Mon Sep 17 00:00:00 2001 From: AI Christianson Date: Sat, 15 Mar 2025 15:14:56 -0400 Subject: [PATCH] webui -> server --- MANIFEST.in | 2 +- ra_aid/__main__.py | 2 +- ra_aid/{webui => server}/__init__.py | 2 +- ra_aid/{webui => server}/server.py | 2 +- ra_aid/{webui => server}/static/index.html | 0 ra_aid/{webui => server}/static/script.js | 0 6 files changed, 4 insertions(+), 4 deletions(-) rename ra_aid/{webui => server}/__init__.py (74%) rename ra_aid/{webui => server}/server.py (99%) rename ra_aid/{webui => server}/static/index.html (100%) rename ra_aid/{webui => server}/static/script.js (100%) diff --git a/MANIFEST.in b/MANIFEST.in index 9cda5dc..329eb3a 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,4 +1,4 @@ include LICENSE include README.md include CHANGELOG.md -recursive-include ra_aid/webui/static * +recursive-include ra_aid/server/static * diff --git a/ra_aid/__main__.py b/ra_aid/__main__.py index 47481eb..aa8ff75 100644 --- a/ra_aid/__main__.py +++ b/ra_aid/__main__.py @@ -101,7 +101,7 @@ if hasattr(litellm, "_logging") and hasattr(litellm._logging, "_disable_debuggin def launch_server(host: str, port: int): """Launch the RA.Aid web interface.""" - from ra_aid.webui import run_server + from ra_aid.server import run_server print(f"Starting RA.Aid web interface on http://{host}:{port}") run_server(host=host, port=port) diff --git a/ra_aid/webui/__init__.py b/ra_aid/server/__init__.py similarity index 74% rename from ra_aid/webui/__init__.py rename to ra_aid/server/__init__.py index 5acfc1e..c05ee4d 100644 --- a/ra_aid/webui/__init__.py +++ b/ra_aid/server/__init__.py @@ -2,4 +2,4 @@ from .server import run_server -__all__ = ["run_server"] +__all__ = ["run_server"] \ No newline at end of file diff --git a/ra_aid/webui/server.py b/ra_aid/server/server.py similarity index 99% rename from ra_aid/webui/server.py rename to ra_aid/server/server.py index fa55067..6291c49 100644 --- a/ra_aid/webui/server.py +++ b/ra_aid/server/server.py @@ -263,4 +263,4 @@ if __name__ == "__main__": ) args = parser.parse_args() - run_server(host=args.host, port=args.port) + run_server(host=args.host, port=args.port) \ No newline at end of file diff --git a/ra_aid/webui/static/index.html b/ra_aid/server/static/index.html similarity index 100% rename from ra_aid/webui/static/index.html rename to ra_aid/server/static/index.html diff --git a/ra_aid/webui/static/script.js b/ra_aid/server/static/script.js similarity index 100% rename from ra_aid/webui/static/script.js rename to ra_aid/server/static/script.js