Commit
·
9cd72db
1
Parent(s):
bf9283b
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,19 +6,6 @@ import gradio as gr
|
|
| 6 |
|
| 7 |
load_dotenv()
|
| 8 |
|
| 9 |
-
my_env = os.environ.copy()
|
| 10 |
-
#
|
| 11 |
-
# Please set your username and your Space name
|
| 12 |
-
#
|
| 13 |
-
my_env["HF_SPACE"] = "embed/Arts-of-coding/Corneal_meta-atlas"
|
| 14 |
-
command = ["ls", "-a","/home/user/.local/lib/python3.8/site-packages/gradio"]
|
| 15 |
-
print(command)
|
| 16 |
-
worker = Popen(command)
|
| 17 |
-
worker.wait()
|
| 18 |
-
command = ["mercury", "clearsessions"]
|
| 19 |
-
print(command)
|
| 20 |
-
worker = Popen(command)
|
| 21 |
-
worker.wait()
|
| 22 |
command = ["mercury", "run", f"0.0.0.0:{os.environ.get('PORT', 7860)}"]
|
| 23 |
print(command)
|
| 24 |
worker = Popen(command, env=my_env)
|
|
|
|
| 6 |
|
| 7 |
load_dotenv()
|
| 8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
command = ["mercury", "run", f"0.0.0.0:{os.environ.get('PORT', 7860)}"]
|
| 10 |
print(command)
|
| 11 |
worker = Popen(command, env=my_env)
|