pythonprincess commited on
Commit
2cf1a2e
·
verified ·
1 Parent(s): b6ed3ea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -21
app.py CHANGED
@@ -1,21 +1,4 @@
1
- """
2
- 🤖 PENNY - Hugging Face Spaces Entry Point
3
- This file is required by Hugging Face Spaces to launch the FastAPI application.
4
- It imports and exposes the FastAPI app from app.main.
5
- """
6
-
7
- import os
8
- import sys
9
- from pathlib import Path
10
-
11
- # Add project root to Python path
12
- PROJECT_ROOT = Path(__file__).parent
13
- sys.path.insert(0, str(PROJECT_ROOT))
14
-
15
- # Import the FastAPI app from app.main
16
- from app.main import app
17
-
18
- # Expose the app for Hugging Face Spaces
19
- # HF Spaces will look for a variable named 'app' or will call this file as a module
20
- __all__ = ["app"]
21
-
 
1
+ from gradio_app import demo
2
+
3
+ if __name__ == "__main__":
4
+ demo.launch()