habulaj commited on
Commit
8dcc43c
·
verified ·
1 Parent(s): f264ddc

Update routers/inference_createposter.py

Browse files
Files changed (1) hide show
  1. routers/inference_createposter.py +43 -0
routers/inference_createposter.py CHANGED
@@ -565,6 +565,39 @@ Atenção: este artigo contém spoilers importantes sobre o enredo e o final do
565
  "instagram_description": "Spoilers abaixo!\n\nO filme Weapons, de Zach Cregger, acompanha o desaparecimento de dezessete crianças durante a madrugada, todas manipuladas pela bruxa Gladys (Amy Madigan), tia de Alex (Cary Christopher). Ela drena a energia vital dos alunos para se manter jovem, mantendo-os em transe no porão da casa de Alex, enquanto os pais do garoto também são enfeitiçados.\n\nNo final, Alex cria um feitiço que usa a energia contra Gladys. A bruxa é derrotada após as crianças atacá-la, e todos os feitiços são quebrados. Após seus pais serem internados por causa do trauma, Alex vai morar com outra tia. Muitas crianças permanecem traumatizadas e em silêncio, apesar de todos serem salvos.\n\nO filme contém alusões enigmáticas, como o horário 2:17, que está ligado ao Quarto 217 em O Iluminado, e imagens ambíguas que remetem a discussões sobre violência escolar e ao título. Zach Cregger prefere deixar que o público tire suas próprias conclusões a partir dessas pistas.\n\n🔗 Toda a história e detalhes do final tão no link da bio.\n\n#Weapons #FinalExplicado #ZachCregger #Suspense #Cinema"
566
  }
567
  """
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
568
 
569
  # Configuração da geração
570
  config = types.GenerateContentConfig(
@@ -616,6 +649,16 @@ Atenção: este artigo contém spoilers importantes sobre o enredo e o final do
616
  role="model",
617
  parts=[types.Part.from_text(text=exemplo_4_output)]
618
  ),
 
 
 
 
 
 
 
 
 
 
619
  # Input real do usuário
620
  types.Content(
621
  role="user",
 
565
  "instagram_description": "Spoilers abaixo!\n\nO filme Weapons, de Zach Cregger, acompanha o desaparecimento de dezessete crianças durante a madrugada, todas manipuladas pela bruxa Gladys (Amy Madigan), tia de Alex (Cary Christopher). Ela drena a energia vital dos alunos para se manter jovem, mantendo-os em transe no porão da casa de Alex, enquanto os pais do garoto também são enfeitiçados.\n\nNo final, Alex cria um feitiço que usa a energia contra Gladys. A bruxa é derrotada após as crianças atacá-la, e todos os feitiços são quebrados. Após seus pais serem internados por causa do trauma, Alex vai morar com outra tia. Muitas crianças permanecem traumatizadas e em silêncio, apesar de todos serem salvos.\n\nO filme contém alusões enigmáticas, como o horário 2:17, que está ligado ao Quarto 217 em O Iluminado, e imagens ambíguas que remetem a discussões sobre violência escolar e ao título. Zach Cregger prefere deixar que o público tire suas próprias conclusões a partir dessas pistas.\n\n🔗 Toda a história e detalhes do final tão no link da bio.\n\n#Weapons #FinalExplicado #ZachCregger #Suspense #Cinema"
566
  }
567
  """
568
+
569
+ exemplo_5_input = """
570
+ A postwar plan for Gaza circulating within the Trump administration, modeled on President Donald Trump’s vow to “take over” the enclave, would turn it into a trusteeship administered by the United States for at least 10 years while it is transformed into a gleaming tourism resort and high-tech manufacturing and technology hub.
571
+
572
+ The 38-page prospectus seen by The Washington Post envisions at least a temporary relocation of all of Gaza’s more than 2 million population, either through what it calls “voluntary” departures to another country or into restricted, secured zones inside the enclave during reconstruction.
573
+
574
+ Those who own land would be offered a digital token by the trust in exchange for rights to redevelop their property, to be used to finance a new life elsewhere or eventually redeemed for an apartment in one of six to eight new “AI-powered, smart cities” to be built in Gaza. Each Palestinian who chooses to leave would be given a $5,000 cash payment and subsidies to cover four years of rent elsewhere, as well as a year of food.
575
+
576
+ The plan estimates that every individual departure from Gaza would save the trust $23,000, compared with the cost of temporary housing and what it calls “life support” services in the secure zones for those who stay.
577
+
578
+ Called the Gaza Reconstitution, Economic Acceleration and Transformation Trust, or GREAT Trust, the proposal was developed by some of the same Israelis who created and set in motion the U.S.- and Israeli-backed Gaza Humanitarian Foundation (GHF) now distributing food inside the enclave. Financial planning was done by a team working at the time for the Boston Consulting Group.
579
+
580
+ People familiar with the trust planning and with administration deliberations over postwar Gaza spoke about the sensitive subject on the condition of anonymity. The White House referred questions to the State Department, which declined to comment. BCG has said that work on the trust plan was expressly not approved and that two senior partners who led the financial modeling were subsequently fired.
581
+
582
+ On Wednesday, Trump held a White House meeting to discuss ideas for how to end the war, now approaching the two-year mark, and what comes next. Participants included Secretary of State Marco Rubio and special presidential envoy Steve Witkoff; former British prime minister Tony Blair, whose views on Gaza’s future have been solicited by the administration; and Trump’ son-in-law Jared Kushner, who handled much of the president’s first-term initiatives on the Middle East and has extensive private interests in the region.
583
+
584
+ No readout of the meeting or policy decisions were announced, although Witkoff said the night before the gathering that the administration had “a very comprehensive plan.”
585
+
586
+ It’s not clear if the detailed and comprehensive GREAT Trust proposal is what Trump has in mind. But major elements of it, according to two people familiar with the planning, were specifically designed to make real the president’s vision of a “Riviera of the Middle East.”
587
+
588
+ Perhaps most appealing, it purports to require no U.S. government funding and offer significant profit to investors. Unlike the controversial and sometimes cash-strapped GHF, which uses armed private U.S. security contractors to distribute food in four southern Gaza locations, the trust plan “does not rely on donations,” the prospectus says. Instead, it would be financed by public and private-sector investment in what it calls “mega-projects,” from electric vehicle plants and data centers to beach resorts and high-rise apartments.
589
+ """
590
+
591
+ exemplo_5_output = """
592
+ {
593
+ "endpoint": "/cover/news",
594
+ "params": {
595
+ "headline": "Trump planeja tutela dos EUA em Gaza",
596
+ "text_position": "top"
597
+ },
598
+ "instagram_description": "Um plano de pós-guerra para Gaza, circulando dentro da administração Trump e baseado na promessa do presidente Donald Trump de 'assumir' o enclave, transformaria a região em uma tutela administrada pelos Estados Unidos por pelo menos 10 anos, enquanto seria convertida em um luxuoso resort turístico e um polo de manufatura e tecnologia de ponta.\n\nO prospecto de 38 páginas prevê ao menos uma realocação temporária de toda a população de mais de 2 milhões de habitantes de Gaza, seja por meio de partidas 'voluntárias' para outro país, seja para zonas restritas e seguras dentro do enclave durante a reconstrução.\n\nO plano estima que cada saída individual de Gaza economizaria à tutela US$ 23.000, em comparação com o custo de habitação temporária e serviços de 'suporte à vida' nas zonas seguras para aqueles que permanecem.\n\nNão está claro se a proposta detalhada e abrangente é exatamente o que Trump tem em mente, mas elementos principais foram projetados para tornar real a visão do presidente de uma 'Riviera do Oriente Médio'.\n\n🔗 Leia toda a história no link da bio.\n\n#Gaza #Trump #Politica #Guerra #OrienteMedio"
599
+ }
600
+ """
601
 
602
  # Configuração da geração
603
  config = types.GenerateContentConfig(
 
649
  role="model",
650
  parts=[types.Part.from_text(text=exemplo_4_output)]
651
  ),
652
+ # Exemplo 5 - User
653
+ types.Content(
654
+ role="user",
655
+ parts=[types.Part.from_text(text=exemplo_5_input)]
656
+ ),
657
+ # Exemplo 5 - Assistant (Model)
658
+ types.Content(
659
+ role="model",
660
+ parts=[types.Part.from_text(text=exemplo_5_output)]
661
+ ),
662
  # Input real do usuário
663
  types.Content(
664
  role="user",