hvoss-techfak commited on
Commit
6c28396
·
1 Parent(s): 041fd85

lowered amount of iterations. 1000 results in okay quality (certainly not the best) but zero gpu user only have 5 minutes compute limits and we need as quick execution as we can get.

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -1,5 +1,6 @@
1
  import uuid
2
- import os, logging
 
3
  import sentry_sdk
4
  from sentry_sdk import capture_exception
5
  from sentry_sdk.integrations.logging import LoggingIntegration
@@ -32,6 +33,7 @@ else:
32
 
33
  sentry_sdk.capture_message("🎉 Sentry is wired up!")
34
 
 
35
  import gradio as gr
36
  import pandas as pd
37
  import os
@@ -41,7 +43,6 @@ import shutil
41
  import sys
42
  from datetime import datetime
43
  import re
44
- from PIL import Image
45
 
46
  # --- Configuration ---
47
  #AUTFORGE_SCRIPT_PATH = "auto_forge.py" # Make sure this points to your script
@@ -58,8 +59,6 @@ DISPLAY_COL_MAP = {
58
  }
59
 
60
 
61
-
62
-
63
  def ensure_required_cols(df, *, in_display_space):
64
  """
65
  Return a copy of *df* with every required column present.
@@ -119,7 +118,7 @@ def get_script_args_info(exclude_args=None):
119
  {
120
  "name": "--iterations",
121
  "type": "number",
122
- "default": 2000,
123
  "help": "Number of optimization iterations",
124
  },
125
  {
 
1
  import uuid
2
+ import os
3
+ import logging
4
  import sentry_sdk
5
  from sentry_sdk import capture_exception
6
  from sentry_sdk.integrations.logging import LoggingIntegration
 
33
 
34
  sentry_sdk.capture_message("🎉 Sentry is wired up!")
35
 
36
+
37
  import gradio as gr
38
  import pandas as pd
39
  import os
 
43
  import sys
44
  from datetime import datetime
45
  import re
 
46
 
47
  # --- Configuration ---
48
  #AUTFORGE_SCRIPT_PATH = "auto_forge.py" # Make sure this points to your script
 
59
  }
60
 
61
 
 
 
62
  def ensure_required_cols(df, *, in_display_space):
63
  """
64
  Return a copy of *df* with every required column present.
 
118
  {
119
  "name": "--iterations",
120
  "type": "number",
121
+ "default": 1000,
122
  "help": "Number of optimization iterations",
123
  },
124
  {