MyShell 백서

MyShell

원문

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 75쪽 중 69쪽

panish) from the list of our Supported Languages.</td><td>en</td><td>false</td></tr></tbody></table> **Output Parameters** | Name | Type | Description | File Type | | ---- | ------- | ------------------------------------ | --------- | | data | `array` | The data returned by the TripAdvisor | | **Output Example** {% tabs %} {% tab title="success" %} {% code fullWidth="false" %} ```json { "data": [ { "location_id": "25981377", "name": "Golden Gate Hall", "distance": "0.11813290781976289", "bearing": "northeast", "address_obj": { "street1": "1412 Market Street", "city": "San Francisco", "state": "California", "country": "United States", "postalcode": "94102", "address_string": "1412 Market Street, San Francisco, CA 94102" } }, { "location_id": "81136", "name": "Inn@Market", "distance": "0.11819927029229718", "bearing": "northeast", "address_obj": { "street1": "1412 Market St", "street2": "", "city": "San Francisco", "state": "California", "country": "United States", "postalcode": "94102-6004", "address_string": "1412 Market St, San Francisco, CA 94102-6004" } }, { "location_id": "142261", "name": "SOMA Park Inn - Civic Center", "distance": "0.28332372268907535", "bearing": "east", "address_obj": { "street1": "101 9th St", "street2": "", "city": "San Francisco", "state": "California", "country": "United States", "postalcode": "94103-2602", "address_string": "101 9th St, San Francisco, CA 94103-2602" } }, { "location_id": "81035", "name": "BEI San Francisco, Trademark Collection by Wyndham", "distance": "0.34469649678886094", "bearing": "northeast", "address_obj": { "street1": "50 8th St", "street2": "", "city": "San Francisco", "state": "California", "country": "United States", "postalcode": "94103-1409", "address_string": "50 8th St, San Francisco, CA 94103-1409" } }, { "location_id": "81782", "name": "Edwardian Hotel", "distance": "0.1561006911946066", "bearing": "southwest", "address_obj": { "street1": "1668 Market St", "street2": "", "city": "San Francisco", "state": "California", "country": "United States", "postalcode": "94102-5949", "address_string": "1668 Market St, San Francisco, CA 94102-5949" } }, { "location_id": "1223830", "name": "San Francisco Central Hotel", "distance": "0.2546225845551202", "bearing": "southwest", "address_obj": { "street1": "1707 Market St", "street2": "", "city": "San Francisco", "state": "California", "country": "United States", "postalcode": "94103-1218", "address_string": "1707 Market St, San Francisco, CA 94103-1218" } }, { "location_id": "80753", "name": "Inn On Grove - San Francisco Civic Center", "distance": "0.3140788375767515", "bearing": "northwest", "address_obj": { "street1": "465 Grove St", "street2": "", "city": "San Francisco", "state": "California", "country": "United States", "postalcode": "94102-4302", "address_string": "465 Grove St, San Francisco, CA 94102-4302" } }, { "location_id": "20063299", "name": "Abigail Hotel", "distance": "0.452152912500969", "bearing": "northeast", "address_obj": { "street1": "246 McAllister St", "city": "San Francisco", "state": "California", "country": "United States", "postalcode": "94102-4707", "address_string": "246 McAllister St, San Francisco, CA 94102-4707" } }, { "location_id": "80766", "name": "The Embassy Hotel", "distance": "0.5165878513316494", "bearing": "north", "address_obj": { "street1": "610 Polk St", "street2": "", "city": "San Francisco", "state": "California", "country": "United States", "postalcode": "94102-3328", "address_string": "610 Polk St, San Francisco, CA 94102-3328" } }, { "location_id": "224956", "name": "Inn at the Opera", "distance": "0.3083844068702081", "bearing": "northwest", "address_obj": { "street1": "333 Fulton St", "street2": "", "city": "San Francisco", "state": "California", "country": "United States", "postalcode": "94102-4423", "address_string": "333 Fulton St, San Francisco, CA 94102-4423" } } ] } ``` {% endcode %} {% endtab %} {% endtabs %} # Twitter Search Search Twitter to find text and medias ## Try it in the Widget Center Click this [url](https://app.myshell.ai/robot-workshop/widget/1784206090390036480) to try this widget and copy the Pro Config template. ## Usage If you want to use Twitter's advanced search features, such as keywords, retweets, please refer to <https://developer.x.com/en/docs/twitter-api/tweets/search/integrate/build-a-query> **Input Parameters** <table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>query</td><td><code>string</code></td><td>The query string to search for</td><td></td><td>true</td></tr><tr><td>sort_order</td><td><code>string</code></td><td>The sort order of the results</td><td>relevancy</td><td>true</td></tr></tbody></table> **Output Parameters** | Name | Type | Description | File Type | | ---- | ------- | ------------------- | --------- | | data | `array` | The list of tweets. | | **Output Example** {% tabs %} {% tab title="success" %} {% code fullWidth="false" %} ```json { "data": [ { "id": "1782432252695368034", "medias_url": [ "https://pbs.twimg.com/media/GLx4r0LbsAAqZAV.jpg" ], "text": "エーベンホルツさん落書き https://t.co/ETQl2XDWL0" }, { "id": "1784160564295709163", "medias_url": [ "https://pbs.twimg.com/media/GMDokjMa8AAKqsT.jpg" ], "text": "#ChatGPT \n木炭風 https://t.co/hEILww4bAj" }, { "id": "1782840245018357858", "medias_url": [ "https://pbs.twimg.com/media/GL3rv0EXYAELnMM.png" ], "text": "https://t.co/7P1PQ79AJy" }, { "id": "1783276532452270499", "medias_url": [ "https://pbs.twimg.com/media/GL93X9ZacAAdFPG.jpg" ], "text": "Appleが「OpenELM」なるAIモデルファミリーをオープンソースでリリース!\n\nネットに接続なしで、完全にデバイス上で動く前提でを重視して作ったとのこと。\n\nこれはスマホ上で動く大本命LLMになる可能性大! https://t.co/N25jNwQzq5" }, { "id": "1783531708307882146", "medias_url": [ "https://pbs.twimg.com/media/GMBe9ofWcAEWtFJ.png", "https://pbs.twimg.com/media/GMBghTvWsAAf_gX.jpg" ], "text": "No one is talking about this major LLM from China.\n\n2 days ago, SenseTime launched SenseNova 5.0, which according to the report (translated from Chinese):\n\n- Beats GPT-4T on nearly all benchmarks\n- Has a 200k context window\n- Is trained on more than 10TB tokens\n- Has major… https://t.co/sjzU9eHiSh https://t.co/2FFkZU9swE" }, { "id": "1782849844928979386", "medias_url": [], "text": "@3ez_5 @Aabdullah_ibr @Ali_rayban71 تابع محظور منشن" }, { "id": "1784008097704632524", "medias_url": [ "https://pbs.twimg.com/media/GMIRvbia8AA-4Fn.jpg" ], "text": "RAGFlow开源了一个RAG框架!\nRAGFlow :一款基于深度文档理解构建的开源 RAG(Retrieval-Augmented Generation)引擎。\n\nRAGFlow 可以为各种规模的企业及个人提供一套精简的 RAG 工作流程,结合大语言模型(LLM)针对用户各类不同的复杂格式数据提供可靠的问答以及有理有据的引用。\n\n特点:… https://t.co/0UpTz0tpN3 https://t.co/7G6LkJicdo" }, { "id": "1782426817044840529", "medias_url": [ "https://pbs.twimg.com/media/GLxyF6lXkAAzIMH.jpg" ], "text": "The Age of Robots is here.\n\nWe are going to see incredible booming in robotics in 2024 and beyond. With huge advancement in LLM, these robots now will now have AI brains.\n\n10 humanoid robots to watch: https://t.co/0rwO8Ypbev https://t.co/qUxOK6N3Wr" }, { "id": "1783523772454330615", "medias_url": [ "https://pbs.twimg.com/media/GMBZapJboAEtXMR.jpg" ], "text": "音は止んで https://t.co/OMilLt9Moh" }, { "id": "1782573082982683098", "medias_url": [ "https://pbs.twimg.com/media/GLz4xaIb0AAqWs7.jpg" ], "text": "有没有能找到靠谱的💊的呢??? https://t.co/hVv5991T7h" } ] } ``` {% endcode %} {% endtab %} {% endtabs %} # UDOP: Document Question Answering UDOP, a unified model for document classification, layout parsing and visual question answering by Microsoft. ## Try it in the Widget Center Click this [url](https://app.myshell.ai/robot-workshop/widget/1781988928627507200) to try this widget and copy the Pro Config template. ## Usage \<TODO: enter description here, and remove useless inputs> **Input Parameters** <table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>image</td><td><code>string</code></td><td>image url for udop to understand.</td><td><a href="https://replicate.delivery/pbxt/KZczgVh1gAp7xfPP79GdZoGdKEoekcLPiqSqE6bEgM5pThGD/example_1.jpg">default_url</a></td><td>true</td></tr><tr><td>prompt</td><td><code>string</code></td><td>The text prompt in natural language. You can use `Question answering. xxxxxx` to ask question about the input image</td><td>Question answering. In which date is the report made?</td><td>true</td></tr></tbody></table> **Output Parameters** | Name | Type | Description | File Type | | -------- | -------- | --------------------------------------------------- | --------- | | response | `string` | The answer given. According to the image and prompt | | **Output Example** {% tabs %} {% tab title="success" %} {% code fullWidth="false" %} ```json { "response": "9/3/92" // example input image=https://replicate.delivery/pbxt/KZczgVh1gAp7xfPP79GdZoGdKEoekcLPiqSqE6bEgM5pThGD/example_1.jpg prompt=Question answering. In which date is the report made? } ``` {% endcode %} {% endtab %} {% tab title="fail" %} {% code fullWidth="false" %} ```json { "results": "<the example results of this widget>" } ``` {% endcode %} {% endtab %} {% endtabs %} ## Detailed Guidelines # Weather forecasting Use city name or specific location to get a weather forecasting information ## Try it in the Widget Center Click this [url](https://app.myshell.ai/robot-workshop/widget/1781991520180035584) to try this widget and copy the Pro Config template. ## Usage Perform weather forecasting either by the given `city_name` or the specific latitude/longitude **Input Parameters** <table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>city_name</td><td><code>string</code></td><td>The city name you want to get the weather information of.</td><td></td><td>false</td></tr><tr><td>latitude</td><td><code>number</code></td><td>The latitude of a location, if it is north, use positive numbers; if it is south, use negative numbers. The range is from -90 to +90</td><td>0</td><td>false</td></tr><tr><td>longitude</td><td><code>number</code></td><td>The longitude of a location, if it is east, use positive numbers; if it is west, use negative numbers. The range is from -180 to +180</td><td>0</td><td>false</td></tr><tr><td>units</td><td><code>string</code></td><td>For temperature in Fahrenheit use `imperial`. For temperature in Celsius use `metric`. For temperature in Kelvin use `standard`. We use `imperial` by default</td><td>imperial</td><td>false</td></tr><tr><td>use_specific_loc</td><td><code>boolean</code></td><td>Whether to use latitude&#x26;longitude for weather forecasting.</td><td>False</td><td>false</td></tr></tbody></table> **Output Parameters** | Name | Type | Description | File Type | | ------- | -------- | ------------------- | --------- | | city | `object` | City information | | | weather | `object` | Weather information | | **Output Example** {% tabs %} {% tab title="success" %} {% code fullWidth="false" %} ```json { "city": { "coord": { "lat": 39.9075, "lon": 116.3972 }, "country": "CN", "name": "Beijing" }, "weather": { "feels_like": [ 60.37, 57.78, 53.22, 57.27, 67.89, 76.69, 78.76, 72.16, 66.2, 60.12, 57.45, 62.55, 74.68, 83.48, 87.51, 80.96, 79.16, 71.87, 66.13, 68.74, 76.57, 83.21, 81.41, 76.17, 70.43, 66.65, 62.31, 64.63, 72.75, 79.72, 79.75, 68.07, 62.96, 60.28, 59.31, 58.14, 59.59, 60.3, 59.18, 54.37 ], "humidity": [ 34, 38, 49, 41, 23, 16, 13, 21, 24, 40, 51, 40, 24, 15, 11, 21, 24, 31, 38, 33, 29, 26, 31, 45, 51, 55, 50, 44, 35, 33, 31, 36, 51, 47, 44, 38, 39, 40, 46, 78 ], "temp": [ 62.8, 60.26, 55.65, 59.68, 70.11, 78.4, 80.76, 74.07, 68.52, 62.31, 59.41, 64.51, 76.23, 87.03, 91.9, 83.5, 79.16, 73.38, 67.86, 70.45, 77.74, 85.91, 83.12, 76.69, 71.2, 67.6, 63.88, 66.24, 74.01, 80.51, 80.8, 69.71, 64.42, 62.15, 61.39, 60.58, 61.88, 62.47, 61.2, 55.45 ], "temp_max": [ 62.8, 60.26, 55.65, 59.68, 70.11, 78.4, 80.76, 74.07, 68.52, 62.31, 59.41, 64.51, 76.23, 87.03, 91.9, 83.5, 79.16, 73.38, 67.86, 70.45, 77.74, 85.91, 83.12, 76.69, 71.2, 67.6, 63.88, 66.24, 74.01, 80.51, 80.8, 69.71, 64.42, 62.15, 61.39, 60.58, 61.88, 62.47, 61.2, 55.45 ], "temp_min": [ 60.58, 58.42, 55.65, 59.68, 70.11, 78.4, 80.76, 74.07, 68.52, 62.31, 59.41, 64.51, 76.23, 87.03, 91.9, 83.5, 79.16, 73.38, 67.86, 70.45, 77.74, 85.91, 83.12, 76.69, 71.2, 67.6, 63.88, 66.24, 74.01, 80.51, 80.8, 69.71, 64.42, 62.15, 61.39, 60.58, 61.88, 62.47, 61.2, 55.45 ], "time": [ "2024-04-23 15:00:00", "2024-04-23 18:00:00", "2024-04-23 21:00:00", "2024-04-24 00:00:00", "2024-04-24 03:00:00", "2024-04-24 06:00:00", "2024-04-24 09:00:00", "2024-04-24 12:00:00", "2024-04-24 15:00:00", "2024-04-24 18:00:00", "2024-04-24 21:00:00", "2024-04-25 00:00:00", "2024-04-25 03:00:00", "2024-04-25 06:00:00", "2024-04-25 09:00:00", "2024-04-25 12:00:00", "2024-04-25 15:00:00", "2024-04-25 18:00:00", "2024-04-25 21:00:00", "2024-04-26 00:00:00", "2024-04-26 03:00:00", "2024-04-26 06:00:00", "2024-04-26 09:00:00", "2024-04-26 12:00:00", "2024-04-26 15:00:00", "2024-04-26 18:00:00", "2024-04-26 21:00:00", "2024-04-27 00:00:00", "2024-04-27 03:00:00", "2024-04-27 06:00:00", "2024-04-27 09:00:00", "2024-04-27 12:00:00", "2024-04-27 15:00:00", "2024-04-27 18:00:00", "2024-04-27 21:00:00", "2024-04-28 00:00:00", "2024-04-28 03:00:00", "2024-04-28 06:00:00", "2024-04-28 09:00:00", "2024-04-28 12:00:00" ], "visibility": [ 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000 ], "weather": [], "wind_degree": [ 152, 183, 168, 187, 202, 204, 209, 177, 148, 54, 42, 32, 164, 197, 208, 199, 195, 218, 144, 101, 104, 67, 344, 85, 92, 97, 87, 73, 88, 143, 145, 99, 82, 95, 86, 103, 103, 86, 10, 352 ], "wind_speed": [ 3.69, 2.8, 2.73, 4.41, 8.75, 11.5, 12.55, 8.08, 6.04, 4.16, 4.85, 4.41, 3.36, 5.7, 9.95, 8.3, 12.21, 5.39, 1.81, 1.1, 3.44, 0.63, 12.86, 3.67, 5.48, 5.84, 5.88, 6.26, 5.64, 6.91, 11.86, 10.96, 5.99, 6.26, 4.45, 6.67, 7, 3.04, 8.34, 7.74 ] } } ``` {% endcode %} {% endtab %} {% endtabs %} # Whisper large-v3 Transcribe audio with url using faster whisper-large-v3. Without any post-processing ## Try it in the Widget Center Click this [url](https://app.myshell.ai/robot-workshop/widget/1781991624332992512) to try this widget and copy the Pro Config template. ## Usage \<TODO: enter description here, and remove useless inputs> **Input Parameters** <table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>voice_url</td><td><code>string</code></td><td>The url of the audio.</td><td><a href="https://cdn.myshell.ai/audio/chat/embed_obj/172/20240312/92d43981ff534b7fa6418dc68fbf0ca1.mp3">default_url</a></td><td>true</td></tr><tr><td>chunk_length_s</td><td><code>integer</code></td><td>The length of every chunk sent to whisper.</td><td>30</td><td>false</td></tr><tr><td>batch_size</td><td><code>integer</code></td><td>To accelerate the whisper process, used for parallel processing of audio.</td><td>24</td><td>false</td></tr><tr><td>return_timestamps</td><td><code>boolean</code></td><td>Whether we need timestamp information for the transcriptions.</td><td>True</td><td>false</td></tr><tr><td>diarize</td><td><code>boolean</code></td><td>Whether we need diarize the audio and return the speaker identification for sentences. If true, require `return_timestamps` to be true.</td><td>False</td><td>false</td></tr><tr><td>language</td><td><code>string</code></td><td>Whisper uses automatic language detection technology, but it can sometimes fail. This language parameter is used to save the setting and specify the target transcription when automatic detection fails. The language should be specified in lowercase, such as 'english', 'french', etc., and defaults to english.</td><td>english</td><td>false</td></tr></tbody></table> **Output Parameters** | Name | Type | Description | File Type | | ------ | -------- | ----------------------------------------------------------------------------------------------------------------------------------- | --------- | | text | `string` | The transcription of the given audio | | | chunks | `array` | if \`return\_timestamps\` is set to true. Chunks with varying lengths, containing information such as text, timestamp, speaker, etc | | **Output Example** {% tabs %} {% tab title="success" %} {% code fullWidth="false" %} ```json { // input https://cdn.myshell.ai/audio/chat/embed_obj/40295/20240423/57aea65228cc4f63895a35a262f8133f.mp3 "chunks": [ { "speaker": null, "text": " On the show today, cuts both ways.", "timestamp": [ 0, 4.8 ] }, { "speaker": null, "text": " And so far, we have talked about humans.", "timestamp": [ 5.6, 7.94 ] }, { "speaker": null, "text": " Now let's talk about machines and the strengths and weaknesses of artificial intelligence.", "timestamp": [ 8.48, 15.22 ] }, { "speaker": null, "text": " Because there are so many things that make bots like ChatGPT amazing.", "timestamp": [ 15.32, 21.06 ] }, { "speaker": null, "text": " It's able to pass the bar exam or college exams as long as plenty of those exam examples", "timestamp": [ 21.46, 27.9 ] }, { "speaker": null, "text": " were in the training data. It can also write poetry, compose music, summarize vast amounts", "timestamp": [ 27.9, 33.92 ] }, { "speaker": null, "text": " of data in a fluid, human-like way. Some people are genuinely wowed by that, like, oh my goodness,", "timestamp": [ 33.92, 40.68 ] }, { "speaker": null, "text": " Chachapiti is so creative. And making powerful AI so easy to use has resurfaced a long-running debate.", "timestamp": [ 41, 48.62 ] }, { "speaker": null, "text": " Whether AI will save us or steal all our jobs and kill us.", "timestamp": [ 49.74, 55.02 ] }, { "speaker": null, "text": " I'd say either is a possibility.", "timestamp": [ 55.58, 58.48 ] }, { "speaker": null, "text": " This is Yejin Choi.", "timestamp": [ 58.9, 60.42 ] }, { "speaker": null, "text": " And we don't know what's going to happen for sure.", "timestamp": [ 60.42, 64.08 ] }, { "speaker": null, "text": " Choi. And we don't know what's going to happen for sure. She's an AI expert, a MacArthur Genius Award winner, and a professor at the University of Washington. And that means a lot is up to us", "timestamp": [ 67.04, 74.68 ] }, { "speaker": null, "text": " to shape the future. So Yejin, you gave a TED Talk recently about AI and a big conundrum as you see it. AI today is unbelievably intelligent", "timestamp": [ 74.68, 87.98 ] }, { "speaker": null, "text": " and then shockingly stupid. You used an example of drying laundry to demonstrate", "timestamp": [ 87.98, 93.72 ] }, { "speaker": null, "text": " how literal it can be. So suppose I left five clothes to dry out in the sun and it took them", "timestamp": [ 93.72, 101.34 ] }, { "speaker": null, "text": " five hours to dry completely. How long would it take to dry 30 clothes?", "timestamp": [ 101.34, 106.66 ] }, { "speaker": null, "text": " Yeah, it doesn't matter ho
프로젝트로 돌아가기