craftgamesnetwork commited on
Commit
d4de199
·
verified ·
1 Parent(s): d82dfeb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -9
app.py CHANGED
@@ -19,7 +19,6 @@ if not torch.cuda.is_available():
19
  DESCRIPTION += "\n<p>⚠️ This space is running on the CPU. This demo doesn't work on CPU 😞! Run on a GPU by duplicating this space or test our website for free and unlimited by <a href='https://squaadai.com'>clicking here</a>, which provides these and more options.</p>"
20
 
21
  MAX_SEED = np.iinfo(np.int32).max
22
- CACHE_EXAMPLES = torch.cuda.is_available() and os.getenv("CACHE_EXAMPLES") == "1"
23
  MAX_IMAGE_SIZE = int(os.getenv("MAX_IMAGE_SIZE", "1824"))
24
  USE_TORCH_COMPILE = os.getenv("USE_TORCH_COMPILE") == "1"
25
  ENABLE_CPU_OFFLOAD = os.getenv("ENABLE_CPU_OFFLOAD") == "1"
@@ -263,14 +262,6 @@ with gr.Blocks(theme=gr.themes.Soft(), css="style.css") as demo:
263
  value=0.7,
264
  )
265
 
266
- gr.Examples(
267
- examples=examples,
268
- inputs=prompt,
269
- outputs=result,
270
- fn=generate,
271
- cache_examples=CACHE_EXAMPLES,
272
- )
273
-
274
  use_negative_prompt.change(
275
  fn=lambda x: gr.update(visible=x),
276
  inputs=use_negative_prompt,
 
19
  DESCRIPTION += "\n<p>⚠️ This space is running on the CPU. This demo doesn't work on CPU 😞! Run on a GPU by duplicating this space or test our website for free and unlimited by <a href='https://squaadai.com'>clicking here</a>, which provides these and more options.</p>"
20
 
21
  MAX_SEED = np.iinfo(np.int32).max
 
22
  MAX_IMAGE_SIZE = int(os.getenv("MAX_IMAGE_SIZE", "1824"))
23
  USE_TORCH_COMPILE = os.getenv("USE_TORCH_COMPILE") == "1"
24
  ENABLE_CPU_OFFLOAD = os.getenv("ENABLE_CPU_OFFLOAD") == "1"
 
262
  value=0.7,
263
  )
264
 
 
 
 
 
 
 
 
 
265
  use_negative_prompt.change(
266
  fn=lambda x: gr.update(visible=x),
267
  inputs=use_negative_prompt,