Commit
Β·
8b3ba2f
1
Parent(s):
109e005
restore temp dir
Browse files- app.py +1 -1
- src/config.py +3 -0
app.py
CHANGED
@@ -18,5 +18,5 @@ if __name__ == "__main__":
|
|
18 |
print("Starting the Gradio app...", flush=True)
|
19 |
demo = create_ui()
|
20 |
print("Gradio app created successfully.", flush=True)
|
21 |
-
demo.queue().launch()
|
22 |
print("Gradio app launched successfully.", flush=True)
|
|
|
18 |
print("Starting the Gradio app...", flush=True)
|
19 |
demo = create_ui()
|
20 |
print("Gradio app created successfully.", flush=True)
|
21 |
+
demo.queue().launch(server_name="0.0.0.0", server_port=7860, debug=True)
|
22 |
print("Gradio app launched successfully.", flush=True)
|
src/config.py
CHANGED
@@ -1,6 +1,9 @@
|
|
1 |
# File and directory paths
|
|
|
|
|
2 |
EVAL_SCRIPT_PATH = "src/eval.py"
|
3 |
LOCAL_TEMP_SUBMISSIONS_DIR = "../temp_submissions_app"
|
|
|
4 |
|
5 |
# Hugging Face Dataset Configuration
|
6 |
DATASET_REPO_ID = "kostis-init/my-storage"
|
|
|
1 |
# File and directory paths
|
2 |
+
import os
|
3 |
+
|
4 |
EVAL_SCRIPT_PATH = "src/eval.py"
|
5 |
LOCAL_TEMP_SUBMISSIONS_DIR = "../temp_submissions_app"
|
6 |
+
os.makedirs(LOCAL_TEMP_SUBMISSIONS_DIR, exist_ok=True)
|
7 |
|
8 |
# Hugging Face Dataset Configuration
|
9 |
DATASET_REPO_ID = "kostis-init/my-storage"
|