Smart Dev
10.2K subscribers
568 photos
42 videos
4 files
234 links
Stay updated with our Telegram bot developments, discover new GitHub repositories, and get the best Python scripts. Join Smart Dev for smart coding solutions!

This Channel Part Of @PremiumNetworkPlus
Download Telegram
Gemini Pro Ai Python Script .

Author: Bisnu Ray
Telegram:
https://t.me/SmartBisnuBio


import os
import google.generativeai as genai

# Fetch the API key from the environment variable
GOOGLE_API_KEY = os.getenv('GOOGLE_API_KEY')

# Check if the API key is available
if GOOGLE_API_KEY is None:
print("API key not found. Please set the GOOGLE_API_KEY environment variable.")
exit(1)

# Configure the API key for Gemini
genai.configure(api_key=GOOGLE_API_KEY)

# List available models
for m in genai.list_models():
if 'generateContent' in m.supported_generation_methods:
print(m.name)

# Example: Generate text from text input
model = genai.GenerativeModel('gemini-pro')
response = model.generate_content("What Can You Do ?")
print(response.text) # Displaying text directly in the console


Github Repo : https://github.com/bisnuray/gemini-pro
❀2
Join https://t.me/SmartGraphicsHub

And DOwnload Freepik , Envato , Motionarry file for free
πŸ”₯1
Hey Everyone πŸ‘‹ Add Premium Network All Channels and Groups in your Folder πŸ“ To Get Premium Access Free πŸ†“

Just
Click Here And See Action πŸ™ˆ
Please open Telegram to view this post
VIEW IN TELEGRAM
Forwarded from Premium Tech Guide (β€ΝŸΝžπ˜šπ˜”π˜ˆπ˜™π˜› π˜‰π˜π˜šπ˜•π˜œ)
Getting Started With Google Gemini AI Python Library

In this tutorial, we will learn how to use Google's official Python google-generativeai Python library to work with Gemini AI API.

Watch Now :
https://youtu.be/W6BdfsTwacI
πŸ”₯2
Gemini Pro Version Comming in smart tool
πŸ€ͺ
Please open Telegram to view this post
VIEW IN TELEGRAM
❀5
I Hope this will be Best Ai For Problem Solving 😁
⚑7😁4❀2❀‍πŸ”₯1πŸ‘1
This media is not supported in your browser
VIEW IN TELEGRAM
#New_Update
How to Use Image AI
━━━━  ✧  ━━━━

- Send a Picture: You can send a new picture or use a picture that's already in the chat.
- Type
/imgai After you send or pick a picture, type /imgai
- You can also ask a question in replay a image like
/imgai What's in this picture?
- You Can solve math , extract text , analysis image , etc .

Note : Use Clear Pictures and Clear Questions Dont use 18+ Image
❀2😱2🀯1
Need subinps/VCPlayerBot Update Enhance Version with New pyrogram and pytg calls verion ? 😍 .
Anonymous Poll
95%
Yesss
5%
Noooo
❀3πŸ”₯3πŸŽ‰2
This media is not supported in your browser
VIEW IN TELEGRAM
Meta AI Python Script

import replicate

# The meta/llama-2-70b-chat model can stream output as it's running.
for event in replicate.stream(
"meta/llama-2-70b-chat",
input={
"prompt": "Who are You?"
},
):
print(str(event), end="")


Install the Python client:

pip install replicate

Next, copy your API token and authenticate by setting it as an environment variable:

set REPLICATE_API_TOKEN=api_key_here

To get api key signup here https://replicate.com/account
πŸ”₯3❀2🀯1
Smart Dev
Need subinps/VCPlayerBot Update Enhance Version with New pyrogram and pytg calls verion ? 😍 .
Totally Fixed πŸ‘€πŸ‘€ , Update Done With latest python version & pytg call and more enhancedπŸ™ˆ

You can host on vps and heroku , repo comming
πŸ”₯4πŸ‘1
Releasing TelecastBot Telegram Bot Repo to stream video in telegram video chat.

Features :
- Playlist, queue.
- Supports Play from YouTube Playlist.
- Change VoiceChat title to current playing song name.
- Supports Live streaming from YouTube
- Play from telegram file supported.
- Starts Radio after if no songs in playlist.
- Automatically downloads audio for the first two tracks in the playlist to ensure smooth playing
- Automatic restart even if heroku restarts.
- Support exporing and importing playlist.
- Better Player Controls [ Pause, Resume, Volume, Replay, Skip]


Repo :
https://github.com/bisnuray/TelecastBot/

Note : This repo Update Version of
VCPlayerBot . SO Star β˜€οΈ the repo if you liked it.
πŸ‘2πŸ’˜2❀‍πŸ”₯1πŸ₯°111
You Can host on Heroku and Vps , If you find any type of issue then notify me @theBugReportBot
Order Your Custom Telegram Bot

βœ”οΈ We take orders to build Custom Telegram bots
β˜„οΈ Multifunction Telegram Bot [ with your requirement ]
πŸ’¬ For FAQ DM :
@TheSmartBisnu

Order Now - Your Own Choice Custom Telegram Bot
❀4πŸ‘1
Smart Dev
Releasing TelecastBot Telegram Bot Repo to stream video in telegram video chat. Features : - Playlist, queue. - Supports Play from YouTube Playlist. - Change VoiceChat title to current playing song name. - Supports Live streaming from YouTube…
More Bug Fixed βœ…βœ…

File Download Issue fixed , Mute Unmute Callback Fixed , Chat ADMINISTRATORS Playlist Controll Fixed

Repo :
https://github.com/bisnuray/SmartVCPlayer

Enjoy Fork this repo , & Star β˜€οΈ the repo if you liked it.
❀1πŸ‘1
Hey Everyone πŸ‘‹ Add Premium Network All Channels and Groups in your Folder πŸ“ To Get Premium Access Free πŸ†“

Just
Click Here And See Action πŸ™ˆ
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘3