adamelliotfields commited on
Commit
170571e
β€’
1 Parent(s): e2eab77

Fix home page links

Browse files
Files changed (1) hide show
  1. 0_🏠_Home.py +8 -7
0_🏠_Home.py CHANGED
@@ -30,16 +30,17 @@ st.html("""
30
  }
31
  </style>
32
  <div style="display: flex; align-items: center; gap: 0.75rem">
33
- <h1>Playground</h1>
34
  <span class="pro-badge">API</span>
35
  </div>
36
- <p>Explore popular generative AI endpoints.</p>
37
- <a href="https://huggingface.co/spaces/adamelliotfields/playground?duplicate=true" target="_blank" rel="noopener noreferrer">
38
- <img src="https://huggingface.co/datasets/huggingface/badges/resolve/main/duplicate-this-space-md.svg" alt="Duplicate this Space" />
39
- </a>
40
  """)
41
 
42
- st.markdown("## Tasks")
 
 
 
 
 
43
  st.page_link("pages/1_πŸ’¬_Text_Generation.py", label="Text Generation", icon="πŸ’¬")
44
  st.page_link("pages/2_🎨_Text_to_Image.py", label="Text to Image", icon="🎨")
45
 
@@ -58,5 +59,5 @@ st.markdown("""
58
 
59
  Select a task. Choose a service. Enter your API key (refresh browser to clear).
60
 
61
- I recommend [duplicating this space](https://huggingface.co/spaces/adamelliotfields/playground?duplicate=true) **privately** and persisting your keys as secrets. See [`README.md`](https://huggingface.co/spaces/adamelliotfields/playground/blob/main/README.md).
62
  """)
 
30
  }
31
  </style>
32
  <div style="display: flex; align-items: center; gap: 0.75rem">
33
+ <h1 style="padding: 0">Playground</h1>
34
  <span class="pro-badge">API</span>
35
  </div>
 
 
 
 
36
  """)
37
 
38
+ st.markdown("""
39
+ [![Duplicate this Space](https://huggingface.co/datasets/huggingface/badges/resolve/main/duplicate-this-space-md.svg)](https://huggingface.co/spaces/adamelliotfields/playground-template?duplicate=true)
40
+
41
+ ## Tasks
42
+ """)
43
+
44
  st.page_link("pages/1_πŸ’¬_Text_Generation.py", label="Text Generation", icon="πŸ’¬")
45
  st.page_link("pages/2_🎨_Text_to_Image.py", label="Text to Image", icon="🎨")
46
 
 
59
 
60
  Select a task. Choose a service. Enter your API key (refresh browser to clear).
61
 
62
+ I recommend [duplicating this space](https://huggingface.co/spaces/adamelliotfields/playground-template?duplicate=true) **privately** and persisting your keys as secrets. See [`README.md`](https://huggingface.co/spaces/adamelliotfields/playground-template/blob/main/README.md).
63
  """)