Skip to content

Commit

Permalink
Update dependencies and import statements
Browse files Browse the repository at this point in the history
  • Loading branch information
SilkePilon committed Nov 22, 2023
1 parent 1cceb7d commit f5f9e81
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
4 changes: 3 additions & 1 deletion lodestone/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@
from javascript import On as Event
from lodestone.plugin import plugins
from lodestone.logger import logger
from lodestone.gradios import ui
except:
from .bot import createBot, Bot
from .utils import llm
from .api import fastapi
from .server import createServer, Server
from javascript import On as Event
from .plugin import plugins
from .logger import logger
from .logger import logger
from .gradios import ui
3 changes: 1 addition & 2 deletions lodestone/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import time
from rich.console import Console
import lodestone
from gradios import demo
from dotenv import load_dotenv

@click.command(context_settings={"ignore_unknown_options": True})
Expand Down Expand Up @@ -105,7 +104,7 @@ def check_python_command():
f.write(f"LODESTONE_USERNAME={username}\nLODESTONE_PASSWORD={password}")
print("Login details saved to .env file. You can change these at any time.")
try:
demo.queue().launch(server_name=f"{host}", server_port=port, show_api=False, auth=(f'{os.environ["LODESTONE_USERNAME"]}', f'{os.environ["LODESTONE_PASSWORD"]}'), share=False, quiet=True)
lodestone.ui.queue().launch(server_name=f"{host}", server_port=port, show_api=False, auth=(f'{os.environ["LODESTONE_USERNAME"]}', f'{os.environ["LODESTONE_PASSWORD"]}'), share=False, quiet=True)
except OSError:
raise OSError(f"Port {port} is already in use!")

Expand Down
2 changes: 1 addition & 1 deletion lodestone/gradios.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def build_schematic(files):
print("not logged in!")


with gr.Blocks(theme=gr.themes.Soft()) as demo:
with gr.Blocks(theme=gr.themes.Soft()) as ui:
with gr.Tab("Bot Settings"):
# gr.Markdown(requests.get('https://raw.githubusercontent.com/the-lodestone-project/Lodestone/main/README.md').text)
# gr.Image("https://github.com/the-lodestone-project/Lodestone/blob/main/assets/logo.png?raw=true", min_width=2000)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "lodestone"
version = "0.0.37"
version = "0.0.38"
description = "🤖 Create Minecraft bots with a powerful, stable, and high level Python API."
authors = [
{ name = "Silke Pilon", email = "[email protected]" },
Expand Down

0 comments on commit f5f9e81

Please sign in to comment.