Delete app.py
Browse files
app.py
DELETED
|
@@ -1,22 +0,0 @@
|
|
| 1 |
-
import gradio as gr
|
| 2 |
-
import sys
|
| 3 |
-
import os
|
| 4 |
-
|
| 5 |
-
# Add the dist folder to path for obfuscated modules
|
| 6 |
-
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'dist'))
|
| 7 |
-
|
| 8 |
-
try:
|
| 9 |
-
from api import check_liveness
|
| 10 |
-
from ui import create_interface
|
| 11 |
-
except ImportError:
|
| 12 |
-
print("Error: Could not import required modules")
|
| 13 |
-
sys.exit(1)
|
| 14 |
-
|
| 15 |
-
if __name__ == "__main__":
|
| 16 |
-
demo = create_interface()
|
| 17 |
-
demo.launch(
|
| 18 |
-
share=False,
|
| 19 |
-
show_error=True,
|
| 20 |
-
server_name="0.0.0.0",
|
| 21 |
-
server_port=7860
|
| 22 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|