Spaces:
Sleeping
Sleeping
Muhammed Essam
Claude
commited on
Commit
Β·
3f28293
1
Parent(s):
576583f
Fix diagrams: Replace Mermaid with ASCII flowcharts
Browse files- Replace non-rendering Mermaid diagrams with emoji ASCII art
- Use box-drawing characters and emojis for clear visualization
- All 4 tabs now have properly rendering flowcharts
- Maintains visual clarity while ensuring compatibility
Flowcharts now show:
- Tab 1: Dual-path name extraction + semantic search
- Tab 2: Voice pipeline with language detection
- Tab 3: Contact search with fuzzy matching
- Tab 4: Complete end-to-end voice contact search
π€ Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
app.py
CHANGED
|
@@ -259,14 +259,19 @@ def create_demo():
|
|
| 259 |
gr.Markdown("""
|
| 260 |
### π How It Works
|
| 261 |
|
| 262 |
-
```
|
| 263 |
-
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
|
| 269 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 270 |
```
|
| 271 |
|
| 272 |
**Models Used:**
|
|
@@ -307,16 +312,26 @@ def create_demo():
|
|
| 307 |
gr.Markdown("""
|
| 308 |
### π€ How It Works
|
| 309 |
|
| 310 |
-
```
|
| 311 |
-
|
| 312 |
-
|
| 313 |
-
|
| 314 |
-
|
| 315 |
-
|
| 316 |
-
|
| 317 |
-
|
| 318 |
-
|
| 319 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 320 |
```
|
| 321 |
|
| 322 |
**Models Used:**
|
|
@@ -358,16 +373,24 @@ def create_demo():
|
|
| 358 |
gr.Markdown("""
|
| 359 |
### π₯ How It Works
|
| 360 |
|
| 361 |
-
```
|
| 362 |
-
|
| 363 |
-
|
| 364 |
-
|
| 365 |
-
|
| 366 |
-
|
| 367 |
-
|
| 368 |
-
|
| 369 |
-
|
| 370 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 371 |
```
|
| 372 |
|
| 373 |
**Models Used:**
|
|
@@ -416,17 +439,29 @@ def create_demo():
|
|
| 416 |
gr.Markdown("""
|
| 417 |
### ποΈ How It Works
|
| 418 |
|
| 419 |
-
```
|
| 420 |
-
|
| 421 |
-
|
| 422 |
-
|
| 423 |
-
|
| 424 |
-
|
| 425 |
-
|
| 426 |
-
|
| 427 |
-
|
| 428 |
-
|
| 429 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 430 |
```
|
| 431 |
|
| 432 |
**Full AI Pipeline:**
|
|
|
|
| 259 |
gr.Markdown("""
|
| 260 |
### π How It Works
|
| 261 |
|
| 262 |
+
```
|
| 263 |
+
π Your Text Query
|
| 264 |
+
β
|
| 265 |
+
βββββββββββββββ΄ββββββββββββββ
|
| 266 |
+
β β
|
| 267 |
+
π€ GLiNER π§ MiniLM
|
| 268 |
+
Extract Names Embeddings
|
| 269 |
+
β β
|
| 270 |
+
Person Names Divisions
|
| 271 |
+
β β
|
| 272 |
+
βββββββββββββββ¬ββββββββββββββ
|
| 273 |
+
β
|
| 274 |
+
π Show Results
|
| 275 |
```
|
| 276 |
|
| 277 |
**Models Used:**
|
|
|
|
| 312 |
gr.Markdown("""
|
| 313 |
### π€ How It Works
|
| 314 |
|
| 315 |
+
```
|
| 316 |
+
ποΈ Voice Input
|
| 317 |
+
β
|
| 318 |
+
π§ Whisper Base
|
| 319 |
+
(Speech-to-Text)
|
| 320 |
+
β
|
| 321 |
+
π Auto Language Detection
|
| 322 |
+
β
|
| 323 |
+
βββββββ΄ββββββ
|
| 324 |
+
β β
|
| 325 |
+
English? Other?
|
| 326 |
+
β β
|
| 327 |
+
β π Translate
|
| 328 |
+
βββββββ¬ββββββ
|
| 329 |
+
β
|
| 330 |
+
π€ GLiNER Extract Names
|
| 331 |
+
β
|
| 332 |
+
π§ MiniLM Semantic Search
|
| 333 |
+
β
|
| 334 |
+
π Ranked Results
|
| 335 |
```
|
| 336 |
|
| 337 |
**Models Used:**
|
|
|
|
| 373 |
gr.Markdown("""
|
| 374 |
### π₯ How It Works
|
| 375 |
|
| 376 |
+
```
|
| 377 |
+
π Text Query
|
| 378 |
+
β
|
| 379 |
+
βββββββββββββββ΄ββββββββββββββ
|
| 380 |
+
β β
|
| 381 |
+
π€ GLiNER π§ MiniLM
|
| 382 |
+
Extract Names Match Divs
|
| 383 |
+
β β
|
| 384 |
+
Person Names Divisions
|
| 385 |
+
β β
|
| 386 |
+
βββββββββββββββ¬ββββββββββββββ
|
| 387 |
+
β
|
| 388 |
+
π Search 500 Contacts
|
| 389 |
+
β
|
| 390 |
+
π Fuzzy Match + Score
|
| 391 |
+
β
|
| 392 |
+
β Ranked Results
|
| 393 |
+
(by confidence score)
|
| 394 |
```
|
| 395 |
|
| 396 |
**Models Used:**
|
|
|
|
| 439 |
gr.Markdown("""
|
| 440 |
### ποΈ How It Works
|
| 441 |
|
| 442 |
+
```
|
| 443 |
+
ποΈ Voice Input
|
| 444 |
+
β
|
| 445 |
+
π§ Whisper Transcribe
|
| 446 |
+
β
|
| 447 |
+
π Language Detection
|
| 448 |
+
β
|
| 449 |
+
βββββββ΄ββββββ
|
| 450 |
+
β β
|
| 451 |
+
English? Arabic/Other?
|
| 452 |
+
β β
|
| 453 |
+
β π Translate
|
| 454 |
+
βββββββ¬ββββββ
|
| 455 |
+
β
|
| 456 |
+
π€ GLiNER Extract Names
|
| 457 |
+
β
|
| 458 |
+
π§ MiniLM Match Divisions
|
| 459 |
+
β
|
| 460 |
+
π Search 500 Contacts
|
| 461 |
+
β
|
| 462 |
+
π Fuzzy Match + Score
|
| 463 |
+
β
|
| 464 |
+
β Ranked Results
|
| 465 |
```
|
| 466 |
|
| 467 |
**Full AI Pipeline:**
|