Spaces:
Sleeping
Sleeping
Sharaf Zaman
commited on
Commit
•
163c9f2
1
Parent(s):
fad4335
Some print statements
Browse files
app.py
CHANGED
@@ -69,7 +69,7 @@ if __name__ == "__main__":
|
|
69 |
|
70 |
gws.title_markdown += """ AstroLLaVA """
|
71 |
|
72 |
-
print(f"args: {gws.args}")
|
73 |
|
74 |
model_path = os.getenv("model", "universeTBD/astroLLaVA")
|
75 |
bits = int(os.getenv("bits", 4))
|
@@ -79,11 +79,13 @@ if __name__ == "__main__":
|
|
79 |
worker_proc = start_worker(model_path, bits=bits)
|
80 |
|
81 |
# Wait for worker and controller to start
|
82 |
-
|
|
|
83 |
|
84 |
exit_status = 0
|
85 |
try:
|
86 |
demo = gws.build_demo(embed_mode=False, cur_dir='./', concurrency_count=concurrency_count)
|
|
|
87 |
demo.queue(
|
88 |
status_update_rate=10,
|
89 |
api_open=False
|
|
|
69 |
|
70 |
gws.title_markdown += """ AstroLLaVA """
|
71 |
|
72 |
+
print(f"astro args: {gws.args}")
|
73 |
|
74 |
model_path = os.getenv("model", "universeTBD/astroLLaVA")
|
75 |
bits = int(os.getenv("bits", 4))
|
|
|
79 |
worker_proc = start_worker(model_path, bits=bits)
|
80 |
|
81 |
# Wait for worker and controller to start
|
82 |
+
print("Waiting for worker and controller to start")
|
83 |
+
time.sleep(30)
|
84 |
|
85 |
exit_status = 0
|
86 |
try:
|
87 |
demo = gws.build_demo(embed_mode=False, cur_dir='./', concurrency_count=concurrency_count)
|
88 |
+
print("Launching gradio")
|
89 |
demo.queue(
|
90 |
status_update_rate=10,
|
91 |
api_open=False
|