hzxie commited on
Commit
3d1b36b
1 Parent(s): e60fd27

docs: update the default value of sliders.

Browse files
Files changed (2) hide show
  1. ARTICLE.md +1 -1
  2. app.py +5 -5
ARTICLE.md CHANGED
@@ -19,7 +19,7 @@ If our work is useful for your research, please consider citing:
19
  This project is licensed under [S-Lab License 1.0](https://huggingface.co/hzxie/city-dreamer/blob/main/LICENSE).
20
  Redistribution and use for non-commercial purposes should follow this license.
21
 
22
- 🤗 **Find Me:**
23
 
24
  <a href="https://github.com/hzxie">
25
  <img style="display: inline-block; margin-right: 20px" src="https://img.shields.io/github/followers/hzxie">
 
19
  This project is licensed under [S-Lab License 1.0](https://huggingface.co/hzxie/city-dreamer/blob/main/LICENSE).
20
  Redistribution and use for non-commercial purposes should follow this license.
21
 
22
+ ##### Find Me 🤗
23
 
24
  <a href="https://github.com/hzxie">
25
  <img style="display: inline-block; margin-right: 20px" src="https://img.shields.io/github/followers/hzxie">
app.py CHANGED
@@ -4,7 +4,7 @@
4
  # @Author: Haozhe Xie
5
  # @Date: 2024-03-02 16:30:00
6
  # @Last Modified by: Haozhe Xie
7
- # @Last Modified at: 2024-03-03 16:01:01
8
  # @Email: [email protected]
9
 
10
  import gradio as gr
@@ -89,10 +89,10 @@ def main(debug):
89
  app = gr.Interface(
90
  get_generated_city,
91
  [
92
- gr.Slider(128, 512, value=320, step=5, label="Camera Radius (m)"),
93
- gr.Slider(256, 512, value=384, step=5, label="Camera Altitude (m)"),
94
- gr.Slider(0, 360, value=180, step=5, label="Camera Azimuth (°)"),
95
- gr.Slider(1440, 6752, value=2656, step=5, label="Map Center (px)"),
96
  ],
97
  [gr.Image(type="numpy", label="Generated City")],
98
  title=title,
 
4
  # @Author: Haozhe Xie
5
  # @Date: 2024-03-02 16:30:00
6
  # @Last Modified by: Haozhe Xie
7
+ # @Last Modified at: 2024-03-03 16:08:25
8
  # @Email: [email protected]
9
 
10
  import gradio as gr
 
89
  app = gr.Interface(
90
  get_generated_city,
91
  [
92
+ gr.Slider(128, 512, value=343, step=5, label="Camera Radius (m)"),
93
+ gr.Slider(256, 512, value=296, step=5, label="Camera Altitude (m)"),
94
+ gr.Slider(0, 360, value=60, step=5, label="Camera Azimuth (°)"),
95
+ gr.Slider(1440, 6752, value=3970, step=5, label="Map Center (px)"),
96
  ],
97
  [gr.Image(type="numpy", label="Generated City")],
98
  title=title,