SHAMIL SHAHBAZ AWAN
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
# Define gravity constants for each planet as a percentage of Earth's gravity
|
|
@@ -116,6 +117,7 @@ def main():
|
|
| 116 |
# Function to trigger balloon effect and then calculate weight
|
| 117 |
def trigger_balloon_and_weight(earth_weight, planet):
|
| 118 |
result = calculate_weight(earth_weight, planet)
|
|
|
|
| 119 |
balloon_script.trigger() # Trigger the balloon effect
|
| 120 |
return result
|
| 121 |
|
|
@@ -127,3 +129,4 @@ def main():
|
|
| 127 |
|
| 128 |
if __name__ == "__main__":
|
| 129 |
main()
|
|
|
|
|
|
| 1 |
+
|
| 2 |
import gradio as gr
|
| 3 |
|
| 4 |
# Define gravity constants for each planet as a percentage of Earth's gravity
|
|
|
|
| 117 |
# Function to trigger balloon effect and then calculate weight
|
| 118 |
def trigger_balloon_and_weight(earth_weight, planet):
|
| 119 |
result = calculate_weight(earth_weight, planet)
|
| 120 |
+
# Trigger the balloon effect after calculating weight
|
| 121 |
balloon_script.trigger() # Trigger the balloon effect
|
| 122 |
return result
|
| 123 |
|
|
|
|
| 129 |
|
| 130 |
if __name__ == "__main__":
|
| 131 |
main()
|
| 132 |
+
|