SHAMIL SHAHBAZ AWAN commited on
Update app.py
Browse files123112 unmodified lines1161171181191201215 unmodified lines127128129import gradio as gr# Define gravity constants for each planet as a percentage of Earth's gravity112 unmodified lines# Function to trigger balloon effect and then calculate weightdef trigger_balloon_and_weight(earth_weight, planet):result = calculate_weight(earth_weight, planet)balloon_script.trigger() # Trigger the balloon effectreturn result5 unmodified linesif __name__ == "__main__":main()1234112 unmodified lines1171181191201211221235 unmodified lines129130131132import gradio as gr# Define gravity constants for each planet as a percentage of Earth's gravity112 unmodified lines# Function to trigger balloon effect and then calculate weightdef trigger_balloon_and_weight(earth_weight, planet):result = calculate_weight(earth_weight, planet)# Trigger the balloon effect after calculating weightballoon_script.trigger() # Trigger the balloon effectreturn result5 unmodified linesif __name__ == "__main__":main()
app.py+3