Mel Seto
commited on
Commit
·
f03e629
1
Parent(s):
5c74b9f
Add watchfiles to auto-reload
Browse files- requirements.txt +3 -3
- run.py +10 -0
requirements.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
gradio>=4.0.0
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
|
|
|
| 1 |
gradio>=4.0.0
|
| 2 |
+
huggingface-hub
|
| 3 |
+
python-dotenv
|
| 4 |
+
watchfiles
|
run.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from multiprocessing import freeze_support
|
| 2 |
+
from watchfiles import run_process
|
| 3 |
+
import app # Import app module
|
| 4 |
+
|
| 5 |
+
def start_app():
|
| 6 |
+
app.launch_app()
|
| 7 |
+
|
| 8 |
+
if __name__ == "__main__":
|
| 9 |
+
freeze_support()
|
| 10 |
+
run_process('.', target=start_app)
|