Commit
·
9d4ad1c
1
Parent(s):
033af1b
added ringg_ai
Browse files
app.py
CHANGED
|
@@ -18,13 +18,30 @@ custom_css = """
|
|
| 18 |
font-family: 'Inter', sans-serif;
|
| 19 |
}
|
| 20 |
.main-header {
|
| 21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
padding: 20px;
|
| 23 |
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 24 |
color: white;
|
| 25 |
border-radius: 10px;
|
| 26 |
margin-bottom: 20px;
|
| 27 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
.status-dot {
|
| 29 |
display: inline-block;
|
| 30 |
width: 8px;
|
|
@@ -94,7 +111,7 @@ footer:after {
|
|
| 94 |
|
| 95 |
# Backend API endpoint (ngrok URL)
|
| 96 |
# You can update this via Hugging Face Space Secrets
|
| 97 |
-
API_ENDPOINT = os.environ.get("STT_API_ENDPOINT", "
|
| 98 |
|
| 99 |
|
| 100 |
class RinggSTTClient:
|
|
@@ -184,7 +201,9 @@ def create_interface():
|
|
| 184 |
status_class = "healthy" if health_status["status"] == "healthy" else "error"
|
| 185 |
gr.Markdown(f"""
|
| 186 |
<div class="main-header">
|
| 187 |
-
<
|
|
|
|
|
|
|
| 188 |
<p>High-Accuracy Hindi Speech-to-Text <span class="status-dot {status_class}"></span></p>
|
| 189 |
</div>
|
| 190 |
""")
|
|
|
|
| 18 |
font-family: 'Inter', sans-serif;
|
| 19 |
}
|
| 20 |
.main-header {
|
| 21 |
+
display: flex;
|
| 22 |
+
align-items: center;
|
| 23 |
+
justify-content: center;
|
| 24 |
+
gap: 20px;
|
| 25 |
+
flex-wrap: wrap;
|
| 26 |
padding: 20px;
|
| 27 |
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 28 |
color: white;
|
| 29 |
border-radius: 10px;
|
| 30 |
margin-bottom: 20px;
|
| 31 |
}
|
| 32 |
+
.main-header .main-logo {
|
| 33 |
+
height: 60px;
|
| 34 |
+
flex-shrink: 0;
|
| 35 |
+
}
|
| 36 |
+
.main-header .main-text {
|
| 37 |
+
text-align: left;
|
| 38 |
+
}
|
| 39 |
+
.main-header .main-text h1 {
|
| 40 |
+
margin: 0 0 6px;
|
| 41 |
+
}
|
| 42 |
+
.main-header .main-text p {
|
| 43 |
+
margin: 0;
|
| 44 |
+
}
|
| 45 |
.status-dot {
|
| 46 |
display: inline-block;
|
| 47 |
width: 8px;
|
|
|
|
| 111 |
|
| 112 |
# Backend API endpoint (ngrok URL)
|
| 113 |
# You can update this via Hugging Face Space Secrets
|
| 114 |
+
API_ENDPOINT = os.environ.get("STT_API_ENDPOINT", "")
|
| 115 |
|
| 116 |
|
| 117 |
class RinggSTTClient:
|
|
|
|
| 201 |
status_class = "healthy" if health_status["status"] == "healthy" else "error"
|
| 202 |
gr.Markdown(f"""
|
| 203 |
<div class="main-header">
|
| 204 |
+
<img src="file=logo.png" alt="Ringg Logo" class="main-logo" style="height: 60px;">
|
| 205 |
+
<div class="main-text">
|
| 206 |
+
<h1>Ringg STT V0</h1>
|
| 207 |
<p>High-Accuracy Hindi Speech-to-Text <span class="status-dot {status_class}"></span></p>
|
| 208 |
</div>
|
| 209 |
""")
|
logo.png
ADDED
|