baiyanlali-zhao commited on
Commit
2801e45
1 Parent(s): 9886f01

update app and readme

Browse files
Files changed (2) hide show
  1. README.md +11 -0
  2. app.py +18 -1
README.md CHANGED
@@ -1,3 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
1
  ![alt text](./media/banner.png)
2
  # Negatively Correlated Ensemble RL
3
 
 
1
+ ---
2
+ title: Negatively Correlated Ensemble RL
3
+ emoji: 🌹
4
+ colorFrom: red
5
+ colorTo: yellow
6
+ sdk: gradio
7
+ python_version: 3.9
8
+ app_file: app.py
9
+ pinned: false
10
+ ---
11
+
12
  ![alt text](./media/banner.png)
13
  # Negatively Correlated Ensemble RL
14
 
app.py CHANGED
@@ -34,6 +34,23 @@ def generate_and_play():
34
 
35
 
36
  with gr.Blocks(title="NCERL Demo") as demo:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  gallery = gr.Gallery(
38
  label="Generated images", show_label=False, elem_id="gallery"
39
  , columns=[3], rows=[1], object_fit="contain", height="auto")
@@ -42,4 +59,4 @@ with gr.Blocks(title="NCERL Demo") as demo:
42
  btn.click(generate_and_play, None, gallery)
43
 
44
  if __name__ == "__main__":
45
- demo.launch()
 
34
 
35
 
36
  with gr.Blocks(title="NCERL Demo") as demo:
37
+ gr.Markdown(
38
+ """
39
+ <div style="display: flex; justify-content: center; align-items: center; text-align: center;">
40
+ <div>
41
+ <h1>Negatively Correlated Ensemble RL</h1>
42
+ </div>
43
+ </div>
44
+ <div style="display: flex; justify-content: center; align-items: center; text-align: center;">
45
+ <div style="display:flex; gap: 0.25rem;" align="center">
46
+ <a href="https://openreview.net/forum?id=iAW2EQXfwb"><img src='https://img.shields.io/badge/Paper-ICLR-red'></a>
47
+ <a href='https://github.com/PneuC/NCERL-Diverse-PCG'><img src='https://img.shields.io/badge/Github-Code-blue'></a>
48
+ </div>
49
+ </div>
50
+
51
+ ![banner](/file=media/banner.png)
52
+ """
53
+ )
54
  gallery = gr.Gallery(
55
  label="Generated images", show_label=False, elem_id="gallery"
56
  , columns=[3], rows=[1], object_fit="contain", height="auto")
 
59
  btn.click(generate_and_play, None, gallery)
60
 
61
  if __name__ == "__main__":
62
+ demo.launch(allowed_paths=["./"])