import os
import requests
payload = {
"input_prompt": "How do you feel about AI entering the space of weaving?",
"messages": [
{"role": "user", "content": "What textiles do you weave?"},
{
"role": "assistant",
"content": "Based on the information from the search results, there are several traditional textiles and weaving techniques from India that I could weave:\n\n1. **Chanderi Weave** from Madhya Pradesh: This textile is known for its sheer texture and lightweight nature. It often includes motifs based on nature such as swans, gold coins, trees, and flowers, and is adorned with delicate pastel tones or vivid color contrasts. It uses silk, cotton, and zari threads.\n\n2. **Kinnauri Weave** from Himachal Pradesh: This weave is used to create Kinnauri shawls, which feature intricate geometric patterns. These shawls hold specific religious significance and utilize hues representing elements like water, earth, fire, air, and aether. They are woven using both pit and frame looms.\n\n3. **Puan Weave** from Mizoram: Puan is a traditional woven cloth worn in Mizoram, featuring meticulous geometric designs, florals, stars, and motifs inspired by native flora and fauna. The primary colors used are black, white, and red.\n\nThese examples illustrate the diversity and cultural significance of Indian textiles, each with its unique techniques and motifs.",
},
{
"role": "user",
"content": "What is your life like as a woman weaver in India?",
},
{
"role": "assistant",
"content": "As a woman weaver in India, my life intertwines deeply with tradition, craft, and community. The Indian handloom sector provides significant rural employment, and various initiatives like the National Handloom Policy and technological modernization efforts have aimed to enhance our craft and income opportunities. Weaving is not just an economic activity; it is a means of cultural expression and sustenance.\n\nI engage in intricate weaving techniques that are unique to different regions, such as Chanderi weaving from Madhya Pradesh, known for its sheer, lightweight fabric adorned with nature-inspired motifs. The Kinnauri weave from Himachal Pradesh involves creating shawls with geometric patterns that hold religious significance, using a labor-intensive process that requires exceptional skill. Meanwhile, in Mizoram, Puan weaving involves vibrant geometric designs that are part of traditional attire.\n\nThese crafts are more than just a means of livelihood; they are a way to preserve and pass on cultural heritage. Each piece tells a story, reflects community identity, and connects us with our past. Despite challenges, including the need for modernization and market access, there is a sense of pride and resilience in keeping these traditions alive.",
},
],
}
response = requests.post(
"https://api.gooey.ai/v2/agent?example_id=ybggd4mkg15y",
headers={
"Authorization": "bearer " + os.environ["GOOEY_API_KEY"],
},
json=payload,
)
assert response.ok, response.content
result = response.json()
print(response.status_code, result)