hvoss-techfak commited on
Commit
aa4ac3d
·
1 Parent(s): e6d37b7

readd gpu spaces

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -10,7 +10,7 @@ from sentry_sdk import capture_exception
10
  from sentry_sdk.integrations.logging import LoggingIntegration
11
  from sentry_sdk.integrations.starlette import StarletteIntegration
12
  from sentry_sdk.integrations.fastapi import FastApiIntegration
13
- #import spaces
14
  dsn = os.getenv("SENTRY_DSN")
15
  if not dsn:
16
  print("WARNING: SENTRY_DSN not set – Sentry disabled")
@@ -321,7 +321,7 @@ if os.path.exists(DEFAULT_MATERIALS_CSV):
321
  else:
322
  initial_df.to_csv(DEFAULT_MATERIALS_CSV, index=False)
323
 
324
- #@spaces.GPU(duration=90) # GPU reserved only for this call
325
  def run_autoforge_process(cmd, log_path):
326
  """
327
  Launch the external `autoforge` CLI.
 
10
  from sentry_sdk.integrations.logging import LoggingIntegration
11
  from sentry_sdk.integrations.starlette import StarletteIntegration
12
  from sentry_sdk.integrations.fastapi import FastApiIntegration
13
+ import spaces
14
  dsn = os.getenv("SENTRY_DSN")
15
  if not dsn:
16
  print("WARNING: SENTRY_DSN not set – Sentry disabled")
 
321
  else:
322
  initial_df.to_csv(DEFAULT_MATERIALS_CSV, index=False)
323
 
324
+ @spaces.GPU(duration=90) # GPU reserved only for this call
325
  def run_autoforge_process(cmd, log_path):
326
  """
327
  Launch the external `autoforge` CLI.