Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -312,6 +312,8 @@ if __name__ == "__main__":
|
|
| 312 |
break
|
| 313 |
except Exception as e:
|
| 314 |
print(f"An error occurred: {str(e)}")
|
|
|
|
|
|
|
| 315 |
|
| 316 |
def _print_welcome_message(self):
|
| 317 |
print("Welcome to the Python App Builder!")
|
|
@@ -331,20 +333,15 @@ if __name__ == "__main__":
|
|
| 331 |
|
| 332 |
def launch_app(self):
|
| 333 |
demo = self.build_app()
|
|
|
|
| 334 |
demo.launch()
|
| 335 |
|
| 336 |
def main():
|
| 337 |
try:
|
| 338 |
app = App()
|
| 339 |
-
|
| 340 |
-
demo.launch()
|
| 341 |
except Exception as e:
|
| 342 |
-
print(f"Error
|
| 343 |
-
|
| 344 |
-
def launch_app(self):
|
| 345 |
-
demo = self.build_app()
|
| 346 |
-
print(f"Demo object type: {type(demo)}")
|
| 347 |
-
demo.launch()
|
| 348 |
|
| 349 |
if __name__ == "__main__":
|
| 350 |
main()
|
|
|
|
| 312 |
break
|
| 313 |
except Exception as e:
|
| 314 |
print(f"An error occurred: {str(e)}")
|
| 315 |
+
|
| 316 |
+
print("Thank you for using the Python App Builder. Goodbye!")
|
| 317 |
|
| 318 |
def _print_welcome_message(self):
|
| 319 |
print("Welcome to the Python App Builder!")
|
|
|
|
| 333 |
|
| 334 |
def launch_app(self):
|
| 335 |
demo = self.build_app()
|
| 336 |
+
print(f"Demo object type: {type(demo)}")
|
| 337 |
demo.launch()
|
| 338 |
|
| 339 |
def main():
|
| 340 |
try:
|
| 341 |
app = App()
|
| 342 |
+
app.run()
|
|
|
|
| 343 |
except Exception as e:
|
| 344 |
+
print(f"Error running app: {e}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 345 |
|
| 346 |
if __name__ == "__main__":
|
| 347 |
main()
|