suvadityamuk commited on
Commit
fbb5505
·
1 Parent(s): 2dfa766

chore: update font and image self-sim pipeline errors

Browse files

Signed-off-by: Suvaditya Mukherjee <suvadityamuk@gmail.com>

Files changed (2) hide show
  1. demos/pipeline_fn.py +4 -0
  2. demos/run_gradio_demo.py +16 -3
demos/pipeline_fn.py CHANGED
@@ -561,6 +561,10 @@ class GuideFlow3dPipeline:
561
  log.info("Running similarity-guided optimization...")
562
  gr.Info("Running similarity-guided optimization...")
563
 
 
 
 
 
564
  app = appearance_text if app_type == 'text' else appearance_image
565
 
566
  # Self-Similarity Optimization
 
561
  log.info("Running similarity-guided optimization...")
562
  gr.Info("Running similarity-guided optimization...")
563
 
564
+ if app_type == 'image' and appearance_image:
565
+ img = Image.open(appearance_image).convert('RGB')
566
+ img.save(osp.join(output_dir, 'app_image.png'))
567
+
568
  app = appearance_text if app_type == 'text' else appearance_image
569
 
570
  # Self-Similarity Optimization
demos/run_gradio_demo.py CHANGED
@@ -323,8 +323,21 @@ body, .gradio-container {{
323
  color: #1f2937 !important;
324
  font-family: 'Avenir Next Regular', 'Inter', 'Roboto', sans-serif !important;
325
  }}
326
- h1, h2, h3, span, p {{
327
- font-family: 'Avenir Next Regular', 'Inter', 'Roboto', sans-serif;
 
 
 
 
 
 
 
 
 
 
 
 
 
328
  }}
329
  .guideflow-header {{
330
  display: flex;
@@ -344,7 +357,7 @@ h1, h2, h3, span, p {{
344
  transform: translateY(0.5rem);
345
  }}
346
  .title-uide, .title-flow, .title-3d {{
347
- font-family: 'Avenir Next Regular', 'Inter', 'Roboto', sans-serif;
348
  font-size: 3.5rem;
349
  font-weight: normal;
350
  line-height: 1.2;
 
323
  color: #1f2937 !important;
324
  font-family: 'Avenir Next Regular', 'Inter', 'Roboto', sans-serif !important;
325
  }}
326
+ /* Add specific components */
327
+ .gradio-container button,
328
+ .gradio-container input,
329
+ .gradio-container textarea,
330
+ .gradio-container label,
331
+ .gradio-container span,
332
+ .gradio-container p,
333
+ .gradio-container h1,
334
+ .gradio-container h2,
335
+ .gradio-container h3,
336
+ .gradio-container h4,
337
+ .gradio-container h5,
338
+ .gradio-container h6
339
+ {{
340
+ font-family: 'Avenir Next Regular', sans-serif !important;
341
  }}
342
  .guideflow-header {{
343
  display: flex;
 
357
  transform: translateY(0.5rem);
358
  }}
359
  .title-uide, .title-flow, .title-3d {{
360
+ font-family: 'Avenir Next Regular', sans-serif !important;
361
  font-size: 3.5rem;
362
  font-weight: normal;
363
  line-height: 1.2;