GithubHelp home page GithubHelp logo

rjohnpaul / anyai Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 13.05 MB

AnyAI is a streamlit powered versatile AI tool that integrates Google Gemini and Google Flash API

Home Page: https://any-ai.streamlit.app/

License: MIT License

Python 100.00%
google google-geocoding-api python3 streamlit streamlit-webapp gemini-pro streamlit-sharing

anyai's Introduction

AnyAI ๐Ÿš€๐Ÿค–

AnyAI is a versatile AI tool that integrates Google Gemini and Google Vision APIs to provide powerful content generation and image classification capabilities. This repository contains the source code for the AnyAI web application built using Streamlit.

Features

AI Content Generator

Using the Google Gemini API, AnyAI can generate content for various platforms, including:

  • LinkedIn Posts
  • Blog Posts
  • Instagram Posts
  • Tweets
  • Product Descriptions
  • Emails
  • Ad Copies
  • Taglines
  • Video Scripts
  • Podcast Scripts
  • SEO Content
  • README Files
  • Documentation
  • Presentations
  • Social Media Posts
  • Articles

Image Classifier

Using the Google Vision API, AnyAI can classify images either via upload or URL based on the entered query.

Getting Started

Prerequisites

  • Python 3.7+
  • Streamlit
  • Pandas
  • Google API credentials

Installation

  1. Clone the repository:

    git clone https://github.com/username/AnyAI.git
    cd AnyAI
  2. Install the required packages:

    pip install -r requirements.txt
  3. Set up your Google API credentials. Create an .env file in the project root and add your API key:

    GOOGLE_API_KEY=your_google_api_key

Running the Application

To run the application, execute the following command in your terminal:

streamlit run app.py

This will start a local server and open the web application in your default web browser.

Usage

  1. Visit Google AI Studio: Go to Google AI Studio.

  2. Get API Key: Click on "Get API Key" and create your API key.

  3. Copy API Key: Copy the generated API key.

  4. Paste in Web Application: In your web application, there should be an input field to paste your API key. Paste the copied API key into this field.

  5. Generate Content and Classify Images: Once the API key is validated, you can use the Gemini API to generate text content and the Vision API to classify images within your web application.

Gemini Model Capabilities

Capability Benchmark Higher is better Description
MMLU Representation of questions in 57 subjects 90.0 CoT@32*
CoT@32* Reasoning 86.4 5-shot** (reported)
Big-Bench Hard Reading comprehension (F1 Score) 83.6 3-shot
DROP Commonsense reasoning for everyday tasks 82.4 Variable shots
HellaSwag Basic arithmetic manipulations 87.8 10-shot*
GSM8K Basic arithmetic manipulations 94.4 maj1@32
maj1@32 Python code generation 92.0 5-shot CoT (reported)
MATH Challenging math problems 53.2 4-shot
HumanEval Python code generation 74.4 0-shot (IT)*
Natural2Code Python code generation 74.9 0-shot

Learn More

For a deeper understanding and additional insights, check out the accompanying blog post dedicated to Google's Gemini Model. Let's embark on this exciting journey together! ๐ŸŒŸ๐Ÿ”

Contributing

We welcome contributions to AnyAI! Please read our CONTRIBUTING guide for more information on how to contribute.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgements


Made with โค๏ธ by John Paul

anyai's People

Contributors

rjohnpaul avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.