mikonvergence commited on
Commit
088fc4c
·
1 Parent(s): 37c80b4

updated colour scheme

Browse files
Files changed (2) hide show
  1. app.py +2 -3
  2. src/build_pipe.py +0 -1
app.py CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
2
  from src.utils import *
3
 
4
  if __name__ == '__main__':
5
- theme = gr.themes.Soft(primary_hue="red", secondary_hue="red", font=['arial'])
6
 
7
  with gr.Blocks(theme=theme) as demo:
8
  with gr.Column(elem_classes="header"):
@@ -10,7 +10,6 @@ if __name__ == '__main__':
10
  gr.Markdown("### Paul Borne–Pons, Mikolaj Czerkawski, Rosalie Martin, Romain Rouffet")
11
  gr.Markdown('[[GitHub](https://github.com/PaulBorneP/MESA)] [[Model](https://huggingface.co/NewtNewt/MESA)] [[Dataset](https://huggingface.co/datasets/Major-TOM/Core-DEM)]')
12
 
13
- # Abstract Section
14
  with gr.Column(elem_classes="abstract"):
15
  gr.Markdown("MESA is a novel generative model based on latent denoising diffusion capable of generating 2.5D representations of terrain based on the text prompt conditioning supplied via natural language. The model produces two co-registered modalities of optical and depth maps.") # Replace with your abstract text
16
  gr.Markdown("This is a test version of the demo app. Please be aware that MESA supports primarily complex, mountainous terrains as opposed to flat land")
@@ -37,4 +36,4 @@ if __name__ == '__main__':
37
  outputs=model_output,
38
  )
39
 
40
- demo.queue().launch()
 
2
  from src.utils import *
3
 
4
  if __name__ == '__main__':
5
+ theme = gr.themes.Soft(primary_hue="emerald", secondary_hue="stone", font=[gr.themes.GoogleFont("Source Sans 3", weights=(400, 600)),'arial'])
6
 
7
  with gr.Blocks(theme=theme) as demo:
8
  with gr.Column(elem_classes="header"):
 
10
  gr.Markdown("### Paul Borne–Pons, Mikolaj Czerkawski, Rosalie Martin, Romain Rouffet")
11
  gr.Markdown('[[GitHub](https://github.com/PaulBorneP/MESA)] [[Model](https://huggingface.co/NewtNewt/MESA)] [[Dataset](https://huggingface.co/datasets/Major-TOM/Core-DEM)]')
12
 
 
13
  with gr.Column(elem_classes="abstract"):
14
  gr.Markdown("MESA is a novel generative model based on latent denoising diffusion capable of generating 2.5D representations of terrain based on the text prompt conditioning supplied via natural language. The model produces two co-registered modalities of optical and depth maps.") # Replace with your abstract text
15
  gr.Markdown("This is a test version of the demo app. Please be aware that MESA supports primarily complex, mountainous terrains as opposed to flat land")
 
36
  outputs=model_output,
37
  )
38
 
39
+ demo.queue().launch()
src/build_pipe.py CHANGED
@@ -1,5 +1,4 @@
1
  from .pipeline_terrain import TerrainDiffusionPipeline
2
- #import models
3
  from huggingface_hub import hf_hub_download, snapshot_download
4
  import os
5
  import torch
 
1
  from .pipeline_terrain import TerrainDiffusionPipeline
 
2
  from huggingface_hub import hf_hub_download, snapshot_download
3
  import os
4
  import torch