rbgo commited on
Commit
cfbb9d5
·
verified ·
1 Parent(s): 9e348f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +44 -6
app.py CHANGED
@@ -58,6 +58,38 @@ st.markdown(
58
  unsafe_allow_html=True
59
  )
60
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
  # ---------- 4. Header & optional quick-filter ----------
62
  st.title("🎙️ Open-Source Text to Speech Model Gallery")
63
 
@@ -65,14 +97,22 @@ with st.expander("ℹ️ About this demo", expanded=True):
65
  st.write(
66
  """
67
  * 12 popular TTS checkpoints, each with a single **_pre-synthesised_** sample
68
- * Nothing heavy runs in your browser – it’s basically an audio gallery
69
- * All clips should live under `samples/<repo-slug>/generated-audio.wav`
70
  """
71
  )
72
 
 
 
 
 
 
 
 
 
 
 
73
  filter_text = st.text_input(
74
  "Filter models… (e.g. “coqui” or “3B”)",
75
- placeholder="Leave blank to show all",
76
  label_visibility="collapsed"
77
  ).lower().strip()
78
 
@@ -108,6 +148,4 @@ else:
108
 
109
  st.markdown("</div>", unsafe_allow_html=True)
110
 
111
- # ---------- 6. Footer ----------
112
- st.markdown("---")
113
- st.caption("Crafted with ❤️ using Streamlit 1.35")
 
58
  unsafe_allow_html=True
59
  )
60
 
61
+ st.markdown(
62
+ """
63
+ <style>
64
+ /* (-- existing styles here --) */
65
+
66
+ /* ---------- Inferless banner ---------- */
67
+ #inferless-banner{
68
+ display:flex;
69
+ align-items:center;
70
+ gap:.5rem;
71
+ margin-top:2rem;
72
+ font-size:.85rem;
73
+ color:#555;
74
+ opacity:.8;
75
+ }
76
+ #inferless-banner img{
77
+ height:24px; /* 👈 nice & small */
78
+ width:24px;
79
+ object-fit:contain;
80
+ border-radius:4px; /* optional: soft corners */
81
+ }
82
+ .inferless-text{
83
+ letter-spacing:.2px;
84
+ font-weight:500;
85
+ }
86
+ </style>
87
+ """,
88
+ unsafe_allow_html=True
89
+ )
90
+
91
+
92
+
93
  # ---------- 4. Header & optional quick-filter ----------
94
  st.title("🎙️ Open-Source Text to Speech Model Gallery")
95
 
 
97
  st.write(
98
  """
99
  * 12 popular TTS checkpoints, each with a single **_pre-synthesised_** sample
 
 
100
  """
101
  )
102
 
103
+ st.markdown(
104
+ """
105
+ <div id="inferless-banner">
106
+ <img src="https://i.tracxn.com/logo/company/1678863153264_9e6a9a4d-b955-42b3-895e-b94ade13c997.jpeg?format=webp&height=120&width=120" alt="Inferless Logo">
107
+ <div class="inferless-text">Powered by Inferless</div>
108
+ </div>
109
+ """,
110
+ unsafe_allow_html=True
111
+ )
112
+
113
  filter_text = st.text_input(
114
  "Filter models… (e.g. “coqui” or “3B”)",
115
+ placeholder="Search Model",
116
  label_visibility="collapsed"
117
  ).lower().strip()
118
 
 
148
 
149
  st.markdown("</div>", unsafe_allow_html=True)
150
 
151
+