Spaces:
Sleeping
Sleeping
File size: 1,792 Bytes
382c884 0e5d8bb 382c884 f5012ac 39c9dd0 24700a9 bc24227 a53db43 9c0c882 e729eaf 0e5d8bb dc4b1f2 59fb3b4 9c0c882 ac95eea ed8513a dc4b1f2 382c884 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
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() |