Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wraps code with Streamlit #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions omtcmod.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import streamlit as st
#welcome screen
print('Hi, this program will convert your osu!mania scroll speed to etterna scroll speed')

#asking for your data
osu_mania_sp = int(input('\nPlease input your osu!mania Scroll Speed: '))
etterna_recep = int(input('\nPlease input your Etterna Receptor Size: '))
osu_mania_sp = st.number_input('\nPlease input your osu!mania Scroll Speed: ',
min_value=1, max_value=40, step=1)
etterna_recep = st.number_input('\nPlease input your Etterna Receptor Size: ',
min_value=1, max_value=10000, step=10)
Comment on lines +8 to +9
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what's the min max values for Receptor Size, will need your input for this


#calculating and printing the results
CMod = osu_mania_sp * 3200 / etterna_recep
print('Your Etterna CMod is', CMod)
st.text(f'Your Etterna CMod is {CMod}')

next_calculation = input ('Type Enter to Close the Program: ')
# next_calculation = input ('Type Enter to Close the Program: ')