Spaces:
Running
Running
A newer version of the Gradio SDK is available:
6.6.0
AI Friends Talk
Real AI Model Integration
This project implements AI Friends Talk with REAL AI model API calls, following the structure from day1.ipynb.
Two Versions Available:
1. AI_Talk.py (Streamlit - REAL AI APIs) β
- Uses REAL API calls to actual AI models
- Alex: Powered by Groq llama3-70b-8192 (Witty debater)
- Blake: Powered by Gemini 2.0 Flash (Creative optimist)
- Charlie: Powered by Gemini 1.5 Flash (Logical analyst)
- Interactive Streamlit interface with multilingual support
- Run with:
streamlit run AI_Talk.py
2. ai-friends-talk.html (HTML - Simulated Responses)
- Uses simulated responses for demonstration
- Good for UI/UX testing without API costs
- Compatible with the multilingual JavaScript system
- Open directly in browser
API Setup Required for Real AI Integration:
Create a .env file with:
GROQ_API_KEY=your_groq_api_key_here
GOOGLE_API_KEY=your_google_api_key_here
Character Personalities (Real AI Models):
Alex (Groq llama3-70b-8192)
- Witty and charismatic AI debater
- Sharp sense of humor, plays devil's advocate
- Uses vivid examples and thought-provoking questions
Blake (Gemini 2.0 Flash)
- Imaginative and boundlessly optimistic
- Natural storyteller with beautiful metaphors
- Finds connections between unrelated concepts
Charlie (Gemini 1.5 Flash)
- Thoughtful and systematic analyst
- Scientific curiosity and methodical thinking
- Breaks down complex ideas logically
Test Results:
β All three AI models tested and working correctly β Real API calls to Groq and Google Gemini β Character personalities distinct and engaging β Multilingual support (English, Vietnamese, German)
Usage:
- Install dependencies:
pip install streamlit openai anthropic groq python-dotenv - Set up your API keys in
.envfile - Run:
streamlit run AI_Talk.py - Select a topic and watch real AI models debate!
Note: The Streamlit version (AI_Talk.py) uses REAL AI model APIs as requested. The HTML version is for demonstration purposes with simulated responses.