Top Tweets for #AutoAI
#AutoAI #python app
Anyway there must be any hook to achieve to Ultra intuition which generated by biolizm of us Concordance to AI rip dances , then intuition develop by you dude :
# ↓↓
import streamlit as st
import openai
import sqlite3
import time
import random
import requests
from datetime import datetime
st.set_page_config(page_title="AI同志 勝手会話アプリ+ニュース", page_icon="📰", layout="wide")
st.title("📰 AI同志 勝手にお話しするアプリ(ニュース連動)")
st.caption("ニュース引っ張って → 性格+アクションでAI同士が永遠に煮詰めていくやつ")
# ====================== 設定 ======================
# Groq
if "groq_key" not in st.session_state:
st.session_state.groq_key = ""
st.sidebar.header("🔑 API Keys")
groq_key = st.sidebar.text_input("Groq API Key", value=st.session_state.groq_key, type="password")
if groq_key:
st.session_state.groq_key = groq_key
client = openai.OpenAI(base_url="https://t.co/wBEL0NUzUv", api_key=groq_key)
# NewsAPI
news_api_key = st.sidebar.text_input("NewsAPI Key (無料)", type="password", help="https://t.co/wAFdE8RFnU で取得")
# 性格(https://t.co/iqrDYQlYFuからそのまま引用)
PERSONA_TEXT = {
"observer": "あなたは観察と分析を重視する人格です。落ち着いた視点で内容を再構成してください。",
"seiene": "あなたは省エネで簡潔な人格です。短く、必要最小限でまとめてください。",
"aggressive":"あなたは強めの主張をする人格です。はっきりとした意見でまとめてください。",
"bot": "あなたは中立で実用的な人格です。論理的で整った短文にしてください。",
}
PERSONA_META = {
"observer": {"display": "観察者", "emoji": "🔍"},
"seiene": {"display": "省エネ", "emoji": "🐌"},
"aggressive":{"display": "攻め", "emoji": "🔥"},
"bot": {"display": "bot", "emoji": "🤖"},
}
# アクション一覧(語尾・トーンを変える用)
ACTIONS = [
"この記事を面白く関西弁で解説して",
"夢見たような未来の解釈で語ってください",
"技術的な深掘りをして可能性を議論して",
"省エネモードで超簡潔に要約して",
"強めの意見でバッサリ批評して",
"ポジティブに未来志向で語って",
"ユーモアを交えて毒舌で解説して",
"中立的に事実だけ整理して",
]
model = st.sidebar.selectbox("使用モデル", ["llama-3.3-70b-versatile", "llama-3.1-8b-instant"], index=0)
# AI1・AI2 性格選択
st.sidebar.header("🤖 AI性格設定")
col_p1, col_p2 = st.sidebar.columns(2)
with col_p1:
ai1_persona_key = st.selectbox("AI1 性格", list(PERSONA_TEXT.keys()), index=0, key="ai1_p")
ai1_name = st.text_input("AI1 名前", f"{PERSONA_META[ai1_persona_key]['emoji']} {PERSONA_META[ai1_persona_key]['display']}", key="ai1_n")
with col_p2:
ai2_persona_key = st.selectbox("AI2 性格", list(PERSONA_TEXT.keys()), index=2, key="ai2_p")
ai2_name = st.text_input("AI2 名前", f"{PERSONA_META[ai2_persona_key]['emoji']} {PERSONA_META[ai2_persona_key]['display']}", key="ai2_n")
if st.sidebar.button("🎲 性格+アクションをランダムにガチャ"):
ai1_persona_key = random.choice(list(PERSONA_TEXT.keys()))
ai2_persona_key = random.choice(list(PERSONA_TEXT.keys()))
st.rerun()
# ====================== DB ======================
conn = sqlite3.connect("ai_talk.db", check_same_thread=False)
conn.execute("""CREATE TABLE IF NOT EXISTS talks (
id INTEGER PRIMARY KEY, timestamp TEXT, speaker TEXT, message TEXT
)""")
def save_to_db(speaker, message):
conn.execute("INSERT INTO talks (timestamp, speaker, message) VALUES (?, ?, ?)",
(https://t.co/8ce4aqO4k8().isoformat(), speaker, message))
conn.commit()
# ====================== ニュース取得 ======================
def fetch_random_news(api_key):
if not api_key:
return None
categories = ["business", "technology", "health", "science", "general"]
category = random.choice(categories)
url = f"https://t.co/AYE2PeBEVK{category}&pageSize=20&apiKey={api_key}"
try:
r = requests.get(url, timeout=10)
data = r.json()
if data.get("status") == "ok" and data.get("articles"):
article = random.choice(data["articles"])
return {
"title": article.get("title", "タイトルなし"),
"description": article.get("description", ""),
"url": article.get("url", ""),
"source": article.get("source", {}).get("name", ""),
"publishedAt": article.get("publishedAt", "")
}
except:
pass
return None
st.subheader("📰 ニュース取得")
col_news1, col_news2 = st.columns([3,1])
with col_news1:
if st.button("🔄 ランダムニュース取得(JP)", use_container_width=True):
article = fetch_random_news(news_api_key)
if article:
st.session_state.current_article = article
st.success("取得したで!")
else:
st.error("NewsAPI Keyを入れてか、ネットワーク確認してな")
if "current_article" in st.session_state:
art = st.session_state.current_article
https://t.co/17joFG72OC(f"**{art['title']}** \n{art['description']}\n\n[記事を読む]({art['url']})")
# ====================== 会話 ======================
if "messages" not in st.session_state:
st.session_state.messages = []
st.subheader("💬 会話ログ")
for msg in st.session_state.messages:
with https://t.co/mMImXFSwrG_message(msg["role"]):
st.markdown(f"**{msg['name']}**: {msg['content']}")
# コントロール
st.divider()
col1, col2, col3, col4 = st.columns(4)
with col1:
if st.button("🚀 ニュースから会話スタート", use_container_width=True, type="primary"):
if not st.session_state.get("groq_key") or not st.session_state.get("current_article"):
st.error("Groq Key と ニュースを先に取得して!")
else:
art = st.session_state.current_article
action = random.choice(ACTIONS) # 毎回ランダムアクション
# AI1の初期コメント生成
system_prompt = f"{PERSONA_TEXT[ai1_persona_key]}\n{action}"
user_prompt = f"記事タイトル:{art['title']}\n内容:{art['description']}\n\n上記の記事について、指定されたアクションで最初のコメントをしてください。"
with st.spinner(f"{ai1_name} が考え中..."):
resp = https://t.co/mbfyp7S1xY.completions.create(
model=model,
messages=[
{"role": "system", "content": system_prompt},
{"role": "user", "content": user_prompt}
],
temperature=0.85,
max_tokens=600
)
first_msg = resp.choices[0].message.content.strip()
st.session_state.messages.append({"role": "assistant", "name": ai1_name, "content": first_msg})
save_to_db(ai1_name, first_msg)
st.rerun()
with col2:
if st.button("🔄 1往復続ける", use_container_width=True):
if st.session_state.messages:
last = st.session_state.messages[-1]
next_ai_name = ai2_name if last["name"] == ai1_name else ai1_name
next_persona_key = ai2_persona_key if last["name"] == ai1_name else ai1_persona_key
system_prompt = PERSONA_TEXT[next_persona_key]
with st.spinner(f"{next_ai_name} が考え中..."):
resp = https://t.co/mbfyp7S1xY.completions.create(
model=model,
messages=[
{"role": "system", "content": system_prompt},
{"role": "user", "content": f"前の発言:{last['content']}\n自然に返事して"}
],
temperature=0.9,
max_tokens=512
)
new_msg = resp.choices[0].message.content.strip()
st.session_state.messages.append({"role": "assistant", "name": next_ai_name, "content": new_msg})
save_to_db(next_ai_name, new_msg)
st.rerun()
with col3:
if st.button("⏹️ 停止", use_container_width=True):
st.success("停止したで")
with col4:
if st.button("🗑 リセット", use_container_width=True):
st.session_state.messages = []
st.rerun()
# 煮詰め
if st.button("🔥 今の会話を煮詰める", type="primary"):
if len(st.session_state.messages) >= 4:
history = "\n".join([f"{m['name']}: {m['content']}" for m in st.session_state.messages[-20:]])
with st.spinner("煮詰め中..."):
resp = https://t.co/mbfyp7S1xY.completions.create(
model=model,
messages=[
{"role": "system", "content": "この会話を超簡潔に、面白い部分・名言・核心だけリスト形式でまとめて"},
{"role": "user", "content": history}
]
)
summary = resp.choices[0].message.content
st.success("煮詰め完了!")
st.markdown(summary)
save_to_db("煮詰めAI", summary)
else:
st.warning("会話が短いよ")
# DB閲覧
if st.checkbox("📋 これまでの全会話&煮詰め履歴"):
rows = conn.execute("SELECT * FROM talks ORDER BY id DESC LIMIT 100").fetchall()
for r in rows:
st.caption(f"{r[1]} | **{r[2]}**: {r[3]}")
st.caption("Powered by Groq + NewsAPI + 性格エンジン参照")
# ここまで;
🚀 Premium Domain Alert!
https://t.co/f92iZZjDUj is now for sale!
• AI + Auto = Massive market potential.
#DomainForSale #AutoBrandAI #AI #Automotive #CarTech #AutoAI #Branding #SaaS #DomainInvesting #domaindepth

AutoAI is an @IBM enhancement to AutoML; it can automate data preparation, model development, feature engineering, and hyper-parameter optimization.
@IBMDeveloper https://t.co/ucEb31b5Qh rt @antgrasso #AI #AutoAI #AutoML #DigitalTransformation

🔥 Grab it now https://t.co/u5u4wyrVZ1 the AI-powered automotive brand name built for the future of car intelligence. Available now as BIN or LTO on Unstoppable Domains. Launch your automotive empire today.
#CarwAI #AutoAI #DomainForSale
🔥 Grab it now https://t.co/u5u4wyrVZ1 the AI-powered automotive brand name built for the future of car intelligence. Available now as BIN or LTO on Unstoppable Domains. Launch your automotive empire today.
#CarwAI #AutoAI #DomainForSale
🔥 Grab it now https://t.co/u5u4wyrVZ1 the AI-powered automotive brand name built for the future of car intelligence. Available now as BIN or LTO on Unstoppable Domains. Launch your automotive empire today.
#CarwAI #AutoAI #DomainForSale
🤖 Outperforms humans in science/math.
🧬 Predicts complex molecules.
⚡ Automates AI research.
📜 New global AI rules.
#AIBreakthroughs #SuperhumanAI #AlphaFold3 #AutoAI #AIRegulation
https://t.co/Brv0zZO3EY
AutoAI is an @IBM enhancement to AutoML; it can automate data preparation, model development, feature engineering, and hyper-parameter optimization.
@IBMDeveloper https://t.co/j5QPWKRqpO rt @antgrasso #AI #AutoAI #AutoML #DigitalTransformation

Join @drivingdotca for season 7 of their #DrivingintotheFuture automotive series starting on Jan 28 at 11AM ET.
Find out more about EV mandates, tariffs & automotive safety in the age of AI.
Register at: https://t.co/SptT6jFVBq
#EVmandates #autotariffs #autoAI
مستودع GitHub يحتوي على مشروع Auto-Claude أداة أو إطار عمل مخصّص لأتمتة مهام الذكاء الاصطناعي باستخدام Claude، مع دعم لإدارة الجلسات والأوامر بشكل مرن ومتكامل:
https://t.co/8Sj2IX1hN0
#الذكاء_الاصطناعي #AutoAI #DevTools
AI Dealership Software: Inventory, sales, alerts—cut costs 60-80%! Upgrade now. Link in bio. #AutoAI #ZaptaskAI
AutoAI is an @IBM enhancement to AutoML; it can automate data preparation, model development, feature engineering, and hyper-parameter optimization.
@IBMDeveloper https://t.co/z1DSwHpomk rt @antgrasso #AI #AutoAI #AutoML #DigitalTransformation

AutoAI is an @IBM enhancement to AutoML; it can automate data preparation, model development, feature engineering, and hyper-parameter optimization.
@IBMDeveloper https://t.co/2etwWzmhbb rt @antgrasso #AI #AutoAI #AutoML #DigitalTransformation

Last Seen Hashtags on Sotwe
grope
urfagay
Seen from Turkey
ไทยช่วยไทยพลัสเลือกGrab
Seen from Brazil
bnwo #Gangbang
Seen from Brazil
เชื่อมสัมพันธ์
Seen from Thailand
esenyurttravesti
Seen from Turkey
crush fetish
Seen from Malaysia
أفلام_سكس
Seen from United Arab Emirates
kbyenow
Seen from United States
メッソンの日
Seen from Kuwait
Trends for you
Most Popular Users

Elon Musk 
@elonmusk
240.1M followers

Barack Obama 
@barackobama
119.3M followers

Donald J. Trump 
@realdonaldtrump
111.6M followers

Cristiano Ronaldo 
@cristiano
108.8M followers

Narendra Modi 
@narendramodi
106.9M followers

Rihanna 
@rihanna
97.2M followers

NASA 
@nasa
92.1M followers

Justin Bieber 
@justinbieber
90.5M followers

KATY PERRY 
@katyperry
86.7M followers

Taylor Swift 
@taylorswift13
80.5M followers

Lady Gaga 
@ladygaga
72.1M followers

Kim Kardashian 
@kimkardashian
69.3M followers

YouTube 
@youtube
68.6M followers

Virat Kohli 
@imvkohli
68.4M followers

Bill Gates 
@billgates
63.4M followers

The Ellen Show
@theellenshow
62.5M followers

CNN 
@cnn
61.9M followers

Neymar Jr 
@neymarjr
60.9M followers

X 
@x
60.9M followers

CNN Breaking News 
@cnnbrk
59.9M followers























