---
name: "hf-space-stardoc-ai-navidc-ocr-demo"
description: "Use the Hugging Face Space StarDoc-AI/navidc-ocr-demo."
metadata:
  source: huggingface-space
  spaceId: "StarDoc-AI/navidc-ocr-demo"
  hubUrl: https://huggingface.co/spaces/StarDoc-AI/navidc-ocr-demo
  agentsMdUrl: https://huggingface.co/spaces/StarDoc-AI/navidc-ocr-demo/agents.md
  appUrl: https://stardoc-ai-navidc-ocr-demo.hf.space
---

# Hugging Face Space: StarDoc-AI/navidc-ocr-demo

Use this skill when the user wants to use the Hugging Face Space `StarDoc-AI/navidc-ocr-demo`.

- Space page: https://huggingface.co/spaces/StarDoc-AI/navidc-ocr-demo
- App URL: https://stardoc-ai-navidc-ocr-demo.hf.space
- Source instructions: https://huggingface.co/spaces/StarDoc-AI/navidc-ocr-demo/agents.md

## Space agent instructions

To use this application (StarDoc-AI/navidc-ocr-demo: Extract structured Markdown from scanned or photographed documents):
API schema: GET https://stardoc-ai-navidc-ocr-demo.hf.space/gradio_api/info
Config (find fn_index): GET https://stardoc-ai-navidc-ocr-demo.hf.space/config → dependencies[i].id where api_name matches API schema endpoint
Join the queue: POST https://stardoc-ai-navidc-ocr-demo.hf.space/gradio_api/queue/join (pass {"data": [...], "fn_index": <from-config>, "session_hash": "<random-uuid>"})
Stream results: GET https://stardoc-ai-navidc-ocr-demo.hf.space/gradio_api/queue/data?session_hash=<same-uuid>
File inputs: POST https://stardoc-ai-navidc-ocr-demo.hf.space/gradio_api/upload -F "files=@file.ext", use as: {"path": "<returned-path>", "meta": {"_type": "gradio.FileData"}, "orig_name": "file.ext"}
Auth: Bearer $HF_TOKEN (https://huggingface.co/settings/tokens)
