본문 바로가기
집밥백과
꿀팁

새우 비스크 파스타

냉파요정

2026-07-08 05:19

243
추천 4

댓글 3

  • 편의점셰프2026-07-08 06:08

    비스크는ㄹㄱ에바임걍편의점꽃게짬뽕에크림섞어먹어진짜

    5
  • 설거지제로2026-07-08 12:38

    ㄹㅇ 비스크소스그거껍데기볶고끓이고갈고 체에거르고설거지벌써 한트럭임ㅋㅋㅋ 고시원공용주방에서그거만들다간 바로 퇴실조치각이다ㅇㅇ 손님상이고뭐고대접하다가 내가 먼저골로갈듯ㅋㅋㅋ 난 걍편의점 칵테일새우 사다가시판크림소스붓고원팬으로 삶는 게속편하더라비스크는걍 밖에서돈주고사먹는게정신건강에 이로움맛 좀 덜해도 설거지안나오는게장땡임 ㄹㅇ로ㅋㅋㅇㅈ?of course! 😊 Since you've updated the script to handle inputs in `dict` format, you'll need to update your API calls accordingly to send data in the correct JSON structure. Here are a few ways to consume your updated API using other scripts, depending on whether you are using **Python**, **JavaScript/Node.js**, or **cURL**. --- ### Option 1: Python (`requests` library) If you are writing another Python script to call your API, you can send the inputs inside a Python dictionary using the `json` parameter in the `requests.post()` method. ```python import requests # Define the API endpoint URL url = "http://127.0.0.1:8000/process" # Replace with your actual URL and port # Prepare the data as a dictionary (nested matching your expected structure) payload = { "inputs": { "text": "Hello world, this is a test.", "threshold": 0.85, "enable_filter": True } } try: # Send post request with JSON payload response = requests.post(url, json=payload) # Check if the request was successful if response.status_code == 200: result = response.json() print("Success:", result) else: print(f"Error {response.status_code}:", response.text) except requests.exceptions.RequestException as e: print("Request failed:", e) ``` --- ### Option 2: JavaScript (Node.js / modern browser `fetch`) If you are calling the API from a frontend application or a Node.js backend: ```javascript const url = 'http://127.0.0.1:8000/process'; // Prepare the data matching the {"inputs": {...}} structure const payload = { inputs: { text: "Hello world, this is a test.", threshold: 0.85, enable_filter: true } }; fetch(url, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(payload) }) .then(response => { if (!response.ok) { throw new Error(`HTTP error! Status: ${response.status}`); } return response.json(); }) .then(data => console.log("Success:", data)) .catch(error => console.error("Error payload failed:", error)); ``` --- ### Option 3: Command Line (cURL) If you want to quickly test your API from the terminal: ```bash curl -X POST "http://127.0.0.1:8000/process" \ -H "Content-Type: application/json" \ -d '{ "inputs": { "text": "Hello world, this is a test.", "threshold": 0.85, "enable_filter": true } }' ``` ### Key Things to Remember: 1. **Content-Type**: Always ensure your requests include the `Content-Type: application/json` header. 2. **Schema Matching**: The key in your outer JSON object (`"inputs"`) must perfectly match whatever key/variable name you're expecting in your controller schema definition. (e.g., if you defined `class ModelInput(BaseModel): inputs: dict`, your payload must have `"inputs"` at its root). _

    2
  • 월세살이2026-07-09 03:03

    ㄹㅇ 비스크 소스 끓이느라 새우 머리 볶고 체에 거르고 시간 존나 아까움 가성비 최악임 손님 대접할 거면 걍 대기업 시판 소스에 냉동 새우 가성비 좋은 거 사다 볶는 게 백배 이득임 새우는 안전하게 63 ℃ 이상 푹 익혀서 내놓으면 중타는 침

    0
댓글을 남기려면 로그인이 필요합니다.