text2diagramv2 / test.py
Anwar11234
first commit
952a040
raw
history blame
420 Bytes
import requests
# Define the URL of the API endpoint
url = "http://127.0.0.1:8000/generate-response/"
# Define the payload
payload = {
"input": "give me a roadmap for frontend development using a mindmap.",
"model": "llama" # Change to "mixtral" to test the Mixtral model
}
# Send a POST request to the API
response = requests.post(url, json=payload)
# Print the response from the API
print(response.json())