2 845
مش مهم 😒😒
اكيد مايجب قوة فريق واحد من الفرق اللى انا فيها 😒
12 ديسمبر 2024, 15:45
12 ديسمبر 2024, ~15:48
import requests,uuid,webbrowser,os; os.system('cls' if os.name == 'nt' else 'clear')
G1 = '\x1b[1;92m\x1b[38;5;46m'
G2 = '\x1b[1;92m\x1b[38;5;50m'
G3 = '\x1b[38;5;196m'
G4 = '\x1b[1;92m\x1b[38;5;210m'
G5 = '\x1b[38;5;90m'
G6 = '\x1b[38;5;93m'
G7 = '\x1b[1;92m\x1b[38;5;212m'
G8 = '\x1b[1;92m\x1b[38;5;208m'
G9 = '\x1b[38;5;123m'
while True:
T = input(f'{G2}[ {G1}YOU {G2}] {G3}- {G4}Enter Text {G5}> {G6}')
he = {'Host': 'api.getimg.ai','Accept': 'application/json','Authorization': 'Bearer key-3XbWkFO34FVCQUnJQ6A3qr702Eu7DDR1dqoJOyhMHqhruEhs22KUzR7w631ZFiA5OFZIba7i44qDQEMpKxzegOUm83vCfILb','Content-Type': 'application/json','User-Agent': 'okhttp/4.12.0','Connection': 'keep-alive',}
js = {'height': 1024,'model': 'realvis-xl-v4','negative_prompt': 'nude, naked, porn, sexual, explicit, adult, sex, xxx, erotic, blowjob, masturbation, intercourse, hentai, vulgar, profane, obscene, dirty, slut, whore, rape, fetish, gangbang, threesome, stripper, escort,','prompt': f'{T}','response_format': 'url','seed': 0,'steps': 30,'width': 1024,}
res = requests.post('https://api.getimg.ai/v1/stable-diffusion-xl/text-to-image',headers=he,json=js).json()
print(res)
if 'url' in res and res['url']:
webbrowser.open(res['url'])
os.system('cls' if os.name == 'nt' else 'clear')
else:
print(f"{G7}[ {G8}Image {G7}] {G3}- {G9}error")
- اتصال صنع صور بـ الذكاء الاصطناعي .
- تحديث 38.19.05 .
- سريع وينطيك جودة HD .
- تكدر تسوي بوت وتستفاد بي .
- @zlzzflf .1- https://takipcimx.net/? 2- https://instamoda.org 3- https://takipcikrali.com/? 4- https://instahile.co/ 5- https://takipstar.com/? 6- https://takipcigir.com/ 7- https://takipcibase.com/ 8- https://takipcikutusu.com/ 9- https://instavevo.com/ 10- https://takipcimx.com/? 11- https://takipkasma.com/ 12- https://takipcizen.com/ 13- https://takipciking.net/? 14- https://platintakipci.com/ 15- https://takipcimax.com/ 16- https://www.insfollow.com/ 17- https://mixtakip.com/ 18- https://takipcihilesico.com/ 19- https://takipcikrali.com/ 20- https://fastfollow.in/ 21- https://bayitakipci.com/ 22- https://begenivar.com/
import telebot
from PIL import Image
import os
#بحقوقي @ktk9k
# توكن
KTK = "توكنكككك"
bot = telebot.TeleBot(KTK)
# المسار
SAVE_PATH = "karar"
#بحقوقي @ktk9k
#
if not os.path.exists(SAVE_PATH):
os.makedirs(SAVE_PATH)
#بحقوقي @ktk9k
@bot.message_handler(content_types=['photo'])
def handle_photo(message):
try:
# تحميل
file_info = bot.get_file(message.photo[-1].file_id)
downloaded_file = bot.download_file(file_info.file_path)
# حفظ الصورة
temp_image_path = os.path.join(SAVE_PATH, "temp_image.png")
with open(temp_image_path, 'wb') as f:
f.write(downloaded_file)
#4K
output_path = os.path.join(SAVE_PATH, f"ktk9k_{message.message_id}_4k.jpg")
with Image.open(temp_image_path) as img:
# تحويل الصورة إلى RGB لضمان دعم صيغة JPG
rgb_image = img.convert('RGB')
# تغيير حجم الصورة إلى 4K
resized_image = rgb_image.resize((3840, 4000))
resized_image.save(output_path, "JPEG")
#بحقوقي @ktk9k
# إرسال
with open(output_path, 'rb') as photo_file:
bot.send_document(message.chat.id, photo_file)
#بحقوقي @ktk9k
# حذف الملفات
os.remove(temp_image_path)
os.remove(output_path)
except Exception as e:
bot.reply_to(message, f" خطأ: {str(e)}")
#بحقوقي @ktk9k
bot.polling()
الي يخمط اشكه شك
نستخدم ملفات تعريف الارتباط لتحسين تجربة التصفح لديك.
بالنقر على «قبول الكل»، فإنك توافق على سياسة استخدام ملفات تعريف الارتباط.