Spaces:
Sleeping
A newer version of the Gradio SDK is available: 6.13.0
title: AI-Ini
emoji: π’
colorFrom: gray
colorTo: pink
sdk: gradio
sdk_version: 6.2.0
app_file: app.py
pinned: false
license: apache-2.0
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference π§ AI Research Scientist Chatbot (Gemini-powered)
A professional, research-oriented AI chatbot built with Google Gemini and Gradio, designed to support AI research scientists, students, and educators in generating high-quality explanations, research ideas, technical content, and creative narratives.
This project demonstrates best practices in:
Secure API key management (Hugging Face Secrets)
Clean Gradio UI design
Configurable text generation parameters
Deployment-ready architecture for Hugging Face Spaces
π Project Overview
The AI Research Scientist Chatbot allows users to input a research prompt or creative query and receive high-quality, context-aware responses generated by Google's Gemini model.
Typical use cases include:
Explaining AI / ML concepts
Drafting research ideas or abstracts
Generating technical explanations
Assisting with educational content
Creative storytelling with controlled parameters
The chatbot is intentionally lightweight, modular, and easy to extend.
π§© Key Features
β Powered by Google Gemini (gemini-2.5-flash-preview)
β Adjustable generation controls (temperature, top-p, max tokens, seed)
β No button UI β generate responses by pressing Enter
β Secure API key handling using environment variables
β Clean, responsive Gradio interface
β Hugging Face Spaces ready
π οΈ Tech Stack
Component Technology
Language Python 3.10+ UI Framework Gradio AI Model Google Gemini Deployment Hugging Face Spaces API Security Environment Variables
π Project Structure
βββ app.py # Main application code βββ README.md # Project documentation βββ requirements.txt # Python dependencies
π API Key Setup (Required)
This project uses Hugging Face Secrets to keep your Gemini API key secure.
Steps:
- Go to your Hugging Face Space
- Navigate to Settings β Secrets
- Add a new secret: Name: `GOOGLE_API_KEY