update_model_name_api
Browse files
README.md
CHANGED
|
@@ -117,7 +117,7 @@ pip install typhoon-ocr -U
|
|
| 117 |
from typhoon_ocr import ocr_document
|
| 118 |
|
| 119 |
# please set env TYPHOON_OCR_API_KEY or OPENAI_API_KEY to use this function
|
| 120 |
-
markdown = ocr_document("test.png", task_type="v1.5")
|
| 121 |
print(markdown)
|
| 122 |
```
|
| 123 |
|
|
@@ -131,7 +131,7 @@ vllm serve scb10x/typhoon-ocr1.5-2b --max-model-len 49152 --served-model-name ty
|
|
| 131 |
|
| 132 |
```python
|
| 133 |
from typhoon_ocr import ocr_document
|
| 134 |
-
markdown = ocr_document('image.png', task_type="v1.5", base_url='http://localhost:8000/v1', api_key='no-key')
|
| 135 |
print(markdown)
|
| 136 |
```
|
| 137 |
To read more about [vllm](https://docs.vllm.ai/en/latest/getting_started/quickstart.html)
|
|
@@ -220,7 +220,7 @@ vllm serve scb10x/typhoon-ocr1.5-2b --max-model-len 49152 --served-model-name ty
|
|
| 220 |
|
| 221 |
```python
|
| 222 |
from typhoon_ocr import ocr_document
|
| 223 |
-
markdown = ocr_document('image.png', task_type="v1.5", base_url='http://localhost:8000/v1', api_key='no-key')
|
| 224 |
print(markdown)
|
| 225 |
```
|
| 226 |
|
|
|
|
| 117 |
from typhoon_ocr import ocr_document
|
| 118 |
|
| 119 |
# please set env TYPHOON_OCR_API_KEY or OPENAI_API_KEY to use this function
|
| 120 |
+
markdown = ocr_document("test.png", model = "typhoon-ocr", figure_language = "Thai", task_type = "v1.5")
|
| 121 |
print(markdown)
|
| 122 |
```
|
| 123 |
|
|
|
|
| 131 |
|
| 132 |
```python
|
| 133 |
from typhoon_ocr import ocr_document
|
| 134 |
+
markdown = ocr_document('image.png', model = "typhoon-ocr" , figure_language = "Thai" , task_type="v1.5", base_url='http://localhost:8000/v1', api_key='no-key')
|
| 135 |
print(markdown)
|
| 136 |
```
|
| 137 |
To read more about [vllm](https://docs.vllm.ai/en/latest/getting_started/quickstart.html)
|
|
|
|
| 220 |
|
| 221 |
```python
|
| 222 |
from typhoon_ocr import ocr_document
|
| 223 |
+
markdown = ocr_document('image.png', model = "typhoon-ocr" , figure_language = "Thai", task_type="v1.5", base_url='http://localhost:8000/v1', api_key='no-key')
|
| 224 |
print(markdown)
|
| 225 |
```
|
| 226 |
|