Spaces:
Running
Running
Deepfake-Audio
Browse files
app.py
CHANGED
|
@@ -10,3 +10,12 @@ os.chdir(source_dir)
|
|
| 10 |
|
| 11 |
# Import the main app logic from Source Code/app.py
|
| 12 |
import app
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
# Import the main app logic from Source Code/app.py
|
| 12 |
import app
|
| 13 |
+
|
| 14 |
+
# Manually trigger the Gradio launch, because importing the module bypasses the __main__ block
|
| 15 |
+
app.demo.queue().launch(
|
| 16 |
+
server_name="0.0.0.0",
|
| 17 |
+
server_port=7860,
|
| 18 |
+
show_error=True,
|
| 19 |
+
pwa=True,
|
| 20 |
+
allowed_paths=[str(app.DATASET_DIR)]
|
| 21 |
+
)
|