adamelliotfields commited on
Commit
c16d580
Β·
verified Β·
1 Parent(s): e692727
0_🏠_Home.py CHANGED
@@ -9,7 +9,7 @@ st.set_page_config(
9
  )
10
 
11
  # sidebar
12
- st.logo("logo.svg")
13
 
14
  # title
15
  st.html("""
@@ -39,10 +39,25 @@ st.html("""
39
  <h1>API Inference</h1>
40
  <span class="pro-badge">PRO</span>
41
  </div>
42
- <p>Inference on Huggingface, Perplexity, and Fal ⚑</p>
43
  """)
44
 
45
- # content
46
  st.markdown("## Tasks")
47
  st.page_link("pages/1_πŸ’¬_Text_Generation.py", label="Text Generation", icon="πŸ’¬")
48
  st.page_link("pages/2_🎨_Text_to_Image.py", label="Text to Image", icon="🎨")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  )
10
 
11
  # sidebar
12
+ st.logo("logo.png")
13
 
14
  # title
15
  st.html("""
 
39
  <h1>API Inference</h1>
40
  <span class="pro-badge">PRO</span>
41
  </div>
 
42
  """)
43
 
 
44
  st.markdown("## Tasks")
45
  st.page_link("pages/1_πŸ’¬_Text_Generation.py", label="Text Generation", icon="πŸ’¬")
46
  st.page_link("pages/2_🎨_Text_to_Image.py", label="Text to Image", icon="🎨")
47
+
48
+ st.markdown("""
49
+ ## Services
50
+
51
+ - [Black Forest Labs](https://docs.bfl.ml)
52
+ - [fal](https://fal.ai/docs)
53
+ - [Hugging Face](https://huggingface.co/docs/api-inference/index)
54
+ - [Perplexity](https://docs.perplexity.ai/home)
55
+ """)
56
+
57
+ st.markdown("""
58
+ ## Usage
59
+
60
+ Choose a task from the sidebar. Enter your API key for the service you want to use. Refresh your browser to remove it.
61
+
62
+ I recommend [duplicating this space](https://huggingface.co/spaces/adamelliotfields/api-inference?duplicate=true) **privately** and persisting your keys as secrets. See [`README.md`](https://huggingface.co/spaces/adamelliotfields/api-inference/blob/main/README.md).
63
+ """)
logo.png ADDED
logo.svg DELETED
pages/1_πŸ’¬_Text_Generation.py CHANGED
@@ -39,7 +39,7 @@ if "txt2txt_seed" not in st.session_state:
39
  st.session_state.txt2txt_seed = 0
40
 
41
  # sidebar
42
- st.logo("logo.svg")
43
  st.sidebar.header("Settings")
44
  service = st.sidebar.selectbox(
45
  "Service",
 
39
  st.session_state.txt2txt_seed = 0
40
 
41
  # sidebar
42
+ st.logo("logo.png")
43
  st.sidebar.header("Settings")
44
  service = st.sidebar.selectbox(
45
  "Service",