Spaces:
Runtime error
Runtime error
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
emoji: π
|
| 4 |
colorFrom: gray
|
| 5 |
colorTo: yellow
|
|
@@ -7,52 +7,78 @@ sdk: gradio
|
|
| 7 |
sdk_version: 6.0.1
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
-
short_description: Detect
|
| 11 |
tags:
|
| 12 |
- building-mcp-track-creative
|
|
|
|
|
|
|
|
|
|
| 13 |
- mcp-server
|
| 14 |
---
|
| 15 |
|
| 16 |
|
| 17 |
# π Egyptian Hieroglyph Detector (MCP Server)
|
| 18 |
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
This project bridges the gap between ancient history and modern AI Agents. It provides an **MCP Server** that allows Ai Agents to "see" and identify Gardiner's Egyptian Hieroglyphs in any image.
|
| 22 |
|
| 23 |
## π₯ Team
|
| 24 |
|
| 25 |
-
- **[youkii-xr](https://huggingface.co/youkii-xr)** β
|
| 26 |
-
- **[
|
| 27 |
|
| 28 |
## π₯ Demo Video
|
| 29 |
|
| 30 |
-
|
|
| 31 |
-
| :---: | :---: |
|
| 32 |
-
| [
|
| 58 |
|
|
@@ -71,23 +97,23 @@ Add this to your `%APPDATA%\Claude\claude_desktop_config.json` (Windows) or `~/L
|
|
| 71 |
```
|
| 72 |
{
|
| 73 |
"mcpServers": {
|
| 74 |
-
"
|
| 75 |
-
"command": "npx
|
| 76 |
"args": [
|
| 77 |
"mcp-remote",
|
| 78 |
-
"
|
| 79 |
"--transport",
|
| 80 |
"streamable-http"
|
| 81 |
]
|
| 82 |
},
|
| 83 |
"upload_helper": {
|
| 84 |
-
"command": "python",
|
| 85 |
"args": [
|
| 86 |
"-m",
|
| 87 |
"gradio",
|
| 88 |
"upload-mcp",
|
| 89 |
-
"
|
| 90 |
-
"C:\\Claude_Work"
|
| 91 |
]
|
| 92 |
}
|
| 93 |
}
|
|
@@ -98,7 +124,7 @@ Add this to your `%APPDATA%\Claude\claude_desktop_config.json` (Windows) or `~/L
|
|
| 98 |
|
| 99 |
## π§© Technical Architecture
|
| 100 |
|
| 101 |
-
- **Framework:** Gradio
|
| 102 |
- **Model:** Ultralytics YOLOv8 (Private Weights)
|
| 103 |
- **Storage:** Hugging Face Hub (Private Repo for Model, Public Space for Inference)
|
| 104 |
- **Protocol:** Model Context Protocol (MCP) via SSE (Server-Sent Events)
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Rosetta Decoder
|
| 3 |
emoji: π
|
| 4 |
colorFrom: gray
|
| 5 |
colorTo: yellow
|
|
|
|
| 7 |
sdk_version: 6.0.1
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
+
short_description: Detect & Translate hieroglyphics
|
| 11 |
tags:
|
| 12 |
- building-mcp-track-creative
|
| 13 |
+
- building-mcp-track-consumer
|
| 14 |
+
- mcp-in-action-track-creative
|
| 15 |
+
- mcp-in-action-track-consumer
|
| 16 |
- mcp-server
|
| 17 |
---
|
| 18 |
|
| 19 |
|
| 20 |
# π Egyptian Hieroglyph Detector (MCP Server)
|
| 21 |
|
| 22 |
+
This project bridges the gap between ancient history and modern AI Agents. It provides an **MCP Server** that allows Ai Agents to "see" and identify Hieroglyphs in any image.
|
|
|
|
|
|
|
| 23 |
|
| 24 |
## π₯ Team
|
| 25 |
|
| 26 |
+
- **[youkii-xr](https://huggingface.co/youkii-xr)** β XR Developer, did the MCP and Gradio part<br> [](https://www.linkedin.com/in/youkii-xr/)
|
| 27 |
+
- **[MariamEssam204](https://huggingface.co/MariamEssam204)** β AI Engineer, did the AI model part <br> [](https://www.linkedin.com/in/mariam-essam-ai-engineer/)
|
| 28 |
|
| 29 |
## π₯ Demo Video
|
| 30 |
|
| 31 |
+
| Gradio App V2 | Mobile Camera Test | MCP Server |
|
| 32 |
+
| :---: | :---: | :---: |
|
| 33 |
+
| [](https://youtu.be/nnQnNfJtSWM) | [](https://youtu.be/wZKBVYAZwZ4) | [](https://youtu.be/Vvlu6sDzsBE) |
|
|
|
|
|
|
|
| 34 |
|
|
|
|
| 35 |
|
| 36 |
π **Social Media Post:**
|
| 37 |
+
[[Gradio App - V2](https://www.linkedin.com/posts/youkii-xr_our-hieroglyphic-ai-detector-just-got-a-major-activity-7400855950632411136-5Z9Y?utm_source=social_share_send&utm_medium=member_desktop_web&rcm=ACoAADSn0yMBo1MdVldbeoL5OxUZo2-CMJKUKOM)]<br>
|
| 38 |
+
[[Mobile camera test](https://www.linkedin.com/posts/mariam-essam-ai-engineer_productdevelopment-dataaugmentation-realtimeai-activity-7400635609570205696-a9JN?utm_source=social_share_send&utm_medium=member_desktop_web&rcm=ACoAADSn0yMBo1MdVldbeoL5OxUZo2-CMJKUKOM)]<br>
|
| 39 |
+
[[Gradio App - V1](https://www.linkedin.com/posts/mariam-essam-ai-engineer_machinelearning-computervision-ai-activity-7400193629241143296-sWvC?utm_source=social_share_send&utm_medium=member_desktop_web&rcm=ACoAADSn0yMBo1MdVldbeoL5OxUZo2-CMJKUKOM)]<br>
|
| 40 |
+
[[MCP Server - V1](https://www.linkedin.com/posts/youkii-xr_huggingface-mcp-ai-activity-7400474001891819520-tTa3?utm_source=social_share_send&utm_medium=member_desktop_web&rcm=ACoAADSn0yMBo1MdVldbeoL5OxUZo2-CMJKUKOM)]
|
| 41 |
|
| 42 |
## ποΈ Capabilities & Tools
|
| 43 |
|
| 44 |
+
#### Hieroglyphs Detection:
|
| 45 |
+
* trained on 400+ different glyphs
|
| 46 |
+
* able to detect with high confidence
|
| 47 |
+
|
| 48 |
+
#### Translation
|
| 49 |
+
* **Mystical prophecy** : translates for tourists and non-academics as a story
|
| 50 |
+
* **Academic Translation** : a linguistics breakdown of symbols and their meaning and how they fit together
|
| 51 |
+
|
| 52 |
+
#### Analytics
|
| 53 |
+
* **Spatial Heatmaps** : visualizes where glyphs are clustered on the wall / papyrus
|
| 54 |
+
* **Confidence Charts** : Shows how sure the AI is about every symbol
|
| 55 |
+
* **Frequency Analysis** : Counts the occurrence of distinguished symbols
|
| 56 |
+
|
| 57 |
+
#### Digital Encyclopedia
|
| 58 |
+
* Includes a searchable database of supported Gardiner Codes with descriptions and transliteration
|
| 59 |
+
|
| 60 |
+
#### Downloadable Results
|
| 61 |
+
* Download the detection result with bounding boxes surrounding each glyph on the wall / papyrus
|
| 62 |
+
* Download glyphs gallery as a zip containing all glyphs detected individually cropped
|
| 63 |
+
|
| 64 |
+
## πAvailable MCP Tools
|
| 65 |
+
When connected to Claude Desktop, this server exposes **4 specific tools** that allow the Agent to perform the full archaeological pipeline:
|
| 66 |
|
| 67 |
+
#### `detect glyphs`
|
| 68 |
+
* **Description:** Scans an input image to find hieroglyphs.
|
| 69 |
+
* **Returns:** A path to the annotated image (boxes drawn) and a JSON object containing the list of found codes and confidence scores.
|
| 70 |
|
| 71 |
+
#### `translate story`
|
| 72 |
+
* **Description:** Takes a list of Gardiner codes or keywords and interprets them.
|
| 73 |
+
* **Returns:** Two distinct texts: a "Mystical Story" (creative interpretation) and an "Academic Translation" (scientific interpretation).
|
| 74 |
|
| 75 |
+
#### `get stats`
|
| 76 |
+
* **Description:** Takes the detection data and generates visual reports.
|
| 77 |
+
* **Returns:** A path to an image file containing charts for Symbol Frequency, Confidence Levels, and Spatial Heatmaps.
|
| 78 |
|
| 79 |
+
#### `list codes`
|
| 80 |
+
* **Description:** Provides access to the full internal database of Egyptian hieroglyphs.
|
| 81 |
+
* **Returns:** The complete dictionary of supported Gardiner codes, descriptions, and categories.
|
| 82 |
|
| 83 |
## π How to Use (Claude Desktop)
|
| 84 |
|
|
|
|
| 97 |
```
|
| 98 |
{
|
| 99 |
"mcpServers": {
|
| 100 |
+
"gradio": {
|
| 101 |
+
"command": "npx",
|
| 102 |
"args": [
|
| 103 |
"mcp-remote",
|
| 104 |
+
"https://mcp-1st-birthday-rosetta-decoder.hf.space/gradio_api/mcp/",
|
| 105 |
"--transport",
|
| 106 |
"streamable-http"
|
| 107 |
]
|
| 108 |
},
|
| 109 |
"upload_helper": {
|
| 110 |
+
"command": "C:\\Python313\\python.exe",
|
| 111 |
"args": [
|
| 112 |
"-m",
|
| 113 |
"gradio",
|
| 114 |
"upload-mcp",
|
| 115 |
+
"https://mcp-1st-birthday-rosetta-decoder.hf.space/",
|
| 116 |
+
"C:\\Claude_Work"
|
| 117 |
]
|
| 118 |
}
|
| 119 |
}
|
|
|
|
| 124 |
|
| 125 |
## π§© Technical Architecture
|
| 126 |
|
| 127 |
+
- **Framework:** Gradio 6.0.0 (with native MCP support)
|
| 128 |
- **Model:** Ultralytics YOLOv8 (Private Weights)
|
| 129 |
- **Storage:** Hugging Face Hub (Private Repo for Model, Public Space for Inference)
|
| 130 |
- **Protocol:** Model Context Protocol (MCP) via SSE (Server-Sent Events)
|