Spaces:
Running
on
L4
Running
on
L4
docs: update the default value of sliders.
Browse files- ARTICLE.md +1 -1
- 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 |
-
|
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:
|
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=
|
93 |
-
gr.Slider(256, 512, value=
|
94 |
-
gr.Slider(0, 360, value=
|
95 |
-
gr.Slider(1440, 6752, value=
|
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,
|