Spaces:
Runtime error
Runtime error
Disable download S3
Browse files
main.py
CHANGED
|
@@ -26,15 +26,18 @@ if __name__ == "__main__":
|
|
| 26 |
# download_s3_folder(s3_client, BUCKET_NAME, PREFIX_RETRIEVER, LOCAL_DIR)
|
| 27 |
# else:
|
| 28 |
# print(f"Локальна директорія {LOCAL_DIR} вже існує і містить файли. Завантаження пропущено.")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
print("Components initialized successfully!")
|
| 33 |
-
app = create_gradio_interface()
|
| 34 |
-
app.launch(share=True)
|
| 35 |
-
else:
|
| 36 |
-
print("Failed to initialize components. Please check the paths and try again.", file=sys.stderr)
|
| 37 |
-
sys.exit(1)
|
| 38 |
|
| 39 |
except Exception as e:
|
| 40 |
print(f"Critical error during startup: {str(e)}", file=sys.stderr)
|
|
|
|
| 26 |
# download_s3_folder(s3_client, BUCKET_NAME, PREFIX_RETRIEVER, LOCAL_DIR)
|
| 27 |
# else:
|
| 28 |
# print(f"Локальна директорія {LOCAL_DIR} вже існує і містить файли. Завантаження пропущено.")
|
| 29 |
+
#
|
| 30 |
+
# # Ініціалізуємо компоненти
|
| 31 |
+
# if initialize_components():
|
| 32 |
+
# print("Components initialized successfully!")
|
| 33 |
+
# app = create_gradio_interface()
|
| 34 |
+
# app.launch(share=True)
|
| 35 |
+
# else:
|
| 36 |
+
# print("Failed to initialize components. Please check the paths and try again.", file=sys.stderr)
|
| 37 |
+
# sys.exit(1)
|
| 38 |
|
| 39 |
+
app = create_gradio_interface()
|
| 40 |
+
app.launch(share=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
|
| 42 |
except Exception as e:
|
| 43 |
print(f"Critical error during startup: {str(e)}", file=sys.stderr)
|