Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
691fce6
1
Parent(s):
043831b
concurrency and documentation
Browse files
app.py
CHANGED
@@ -831,7 +831,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
831 |
with open(self.log_path, "a", encoding="utf-8") as lf:
|
832 |
lf.write(
|
833 |
"\nERROR: {}. This usually means the space has no free GPU "
|
834 |
-
"minutes left
|
835 |
)
|
836 |
# a non-zero code tells the outer loop something went wrong
|
837 |
self.returncode = -1
|
@@ -997,4 +997,4 @@ if __name__ == "__main__":
|
|
997 |
except Exception as e:
|
998 |
print(f"Could not write default {DEFAULT_MATERIALS_CSV}: {e}")
|
999 |
print("To run the UI, execute: python app.py") # Corrected to python app.py
|
1000 |
-
demo.queue(default_concurrency_limit=
|
|
|
831 |
with open(self.log_path, "a", encoding="utf-8") as lf:
|
832 |
lf.write(
|
833 |
"\nERROR: {}. This usually means the space has no free GPU "
|
834 |
+
"minutes left, or the process took too long due to too many filaments or changed parameters. Please clone the docker container, run it locally or wait for a bit.\n".format(e)
|
835 |
)
|
836 |
# a non-zero code tells the outer loop something went wrong
|
837 |
self.returncode = -1
|
|
|
997 |
except Exception as e:
|
998 |
print(f"Could not write default {DEFAULT_MATERIALS_CSV}: {e}")
|
999 |
print("To run the UI, execute: python app.py") # Corrected to python app.py
|
1000 |
+
demo.queue(default_concurrency_limit=8).launch(share=False)
|