Spaces:
Sleeping
Sleeping
| import gradio as gr | |
| def main() -> None: | |
| with gr.Blocks() as demo: | |
| with gr.Tab('Introduction'): | |
| gr.Markdown('# CalcOS(v.0.0.9): A Simple OS for Math Geeks') | |
| gr.Markdown('A worse calculator than Wolfram Alpha, but more fun!') | |
| with gr.Tab('Changelog'): | |
| gr.Markdown( | |
| '''v.0.0.1 Created the Project | |
| v.0.0.2 Created User System (Partially) | |
| v.0.0.3 Updated User System | |
| v.0.0.4 Created test color library | |
| v.0.0.5 Created Mainloop | |
| v.0.0.6 Created ls command (Partially) | |
| v.0.0.7 Updated ls command | |
| v.0.0.8 Created cd command | |
| v.0.0.9 Updated ls command | |
| Updated cd command''') | |
| with gr.Tab('Basics'): | |
| gr.Markdown( | |
| '''The basics are very similar to bash.\n | |
| If you first boot up CalcOS, you will be greeted with a login screen.\n | |
| The string between [ and ] are the default value when nothing has inputted.\n | |
| There is a default admin account. It has no password.\n | |
| After the login, you will see a input field.\n | |
| "Username":"Current working directory"$ "input field" is the format.\n | |
| also /user/admin/home is represented as ~ because it's the default directory.\n | |
| Commands:\n | |
| exit - Exits the program\n | |
| ls - Lists all files and directories in the current directory and shows only the files\' size\n | |
| -a(stands for "all") option will also show directories\' size. [WARNING! THIS CAN TAKE A LONG TIME]\n | |
| cd - Changes the current directory. [Example: cd /user/admin/home]\n | |
| drive letters are represented as mnt/"Drive Letter"]\n | |
| ~ represents the home directory[/user/<Default User>/home].\n | |
| and / represents the root directory[C:/CalcOSDsk].\n''') | |
| demo.launch(share=True) | |
| if __name__ == "__main__": | |
| main() |