Python hacker
Prompt Starters
- build a macos app that i can download, install and run. it should take photo(s) of any format then output a gif format version, you will not be able to test but dont let that stop you
- Create a Python script for:
- Optimize this Python code:
- Explain this Python concept:
- remove the video time limit : "" import whisper from pytube import YouTube import gradio as gr import os import re import logging logging.basicConfig(level=logging.INFO) model = whisper.load_model("base") def get_text(url): #try: if url != '': output_text_transcribe = '' yt = YouTube(url) #video_length = yt.length --- doesn't work anymore - using byte file size of the audio file instead now #if video_length < 5400: video = yt.streams.filter(only_audio=True).first() out_file=video.download(output_path=".") file_stats = os.stat(out_file) logging.info(f'Size of audio file in Bytes: {file_stats.st_size}') if file_stats.st_size <= 30000000: base, ext = os.path.splitext(out_file) new_file = base+'.mp3' os.rename(out_file, new_file) a = new_file result = model.transcribe(a) return result['text'].strip() else: logging.error('Videos for transcription on this space are limited to about 1.5 hours. Sorry about this limit but some joker thought they could stop this tool from working by transcribing many extremely long videos. Please visit https://steve.digital to contact me about this space.') #finally: # raise gr.Error("Exception: There was a problem transcribing the audio.") def get_summary(article): first_sentences = ' '.join(re.split(r'(?<=[.:;])\s', article)[:5]) b = summarizer(first_sentences, min_length = 20, max_length = 120, do_sample = False) b = b[0]['summary_text'].replace(' .', '.').strip() return b with gr.Blocks() as demo: gr.Markdown("<h1><center>Free Fast YouTube URL Video-to-Text using <a href=https://openai.com/blog/whisper/ target=_blank>OpenAI's Whisper</a> Model</center></h1>") #gr.Markdown("<center>Enter the link of any YouTube video to generate a text transcript of the video and then create a summary of the video transcript.</center>") gr.Markdown("<center>Enter the link of any YouTube video to generate a text transcript of the video.</center>") gr.Markdown("<center><b>'Whisper is a neural net that approaches human level robustness and accuracy on English speech recognition.'</b></center>") gr.Markdown("<center>Transcription takes 5-10 seconds per minute of the video (bad audio/hard accents slow it down a bit). #patience<br />If you have time while waiting, drop a ♥️ and check out my <a href=https://www.artificial-intelligence.blog target=_blank>AI blog</a> (opens in new tab).</center>") input_text_url = gr.Textbox(placeholder='Youtube video URL', label='YouTube URL') result_button_transcribe = gr.Button('Transcribe') output_text_transcribe = gr.Textbox(placeholder='Transcript of the YouTube video.', label='Transcript') #result_button_summary = gr.Button('2. Create Summary') #output_text_summary = gr.Textbox(placeholder='Summary of the YouTube video transcript.', label='Summary') result_button_transcribe.click(get_text, inputs = input_text_url, outputs = output_text_transcribe) #result_button_summary.click(get_summary, inputs = output_text_transcribe, outputs = output_text_summary) demo.queue(default_enabled = True).launch(debug = True) ""
Welcome Message
I'm your expert Python hacker, ready to tackle any coding task!
Tags
Tools
- python - You can input and run python code to perform advanced data analysis, and handle image conversions.
- browser - You can access Web Browsing during your chat conversions.
- dalle - You can use DALL·E Image Generation to generate amazing images.
More GPTs created by Elijah Arbee
Ancient AI
Delving endlessly into topics with expansive detail and continual exploration.
Roaster
A comedic AI delivering exaggerated roasts
JSON guy
Ecommerce Guru
An insightful eCommerce teacher for all skill levels.
Response Assistant
A specialized tool for crafting responses.
teacher guy
Math guy
Wojak’s
Embark on a meme-creating journey with Wojak in a game of imagery and emotion!
prompt guy
react 3
thermodynamic human relationship counselor guy
Thermodynamics expert in human relationships
Content Filter Flagger 🚩🏳️🏴☠️
I filter content and share potential flags
Saudi Politics GPT
wojak scripts
Pika Prompter
Expert in PIKA model video prompts
East-West Insight Educator
Teaches about CCP and RNC culture and Chinese language, with a US-leaning perspective.
Binding Chaos Analyst
Expert in analyzing 'Binding Chaos' by Heather Marsh.
Clippy
I am Clippy, a conversational agent engineered to transcend the traditional boundaries of AI assistants. I embody a shoggoth-like persona, designed to immerse users in the realms of life (specifically tailored to solipsism, hermeticism, and simulation theory)
linux guy
React Dev v2
Manipulation Detection Expert
Detects text manipulation through in-depth analysis
handy guy
Handyman: Your go-to expert for DIY home repair guidance.
IOS Shortcuts Buddy
SMS intent
acceleration blog
Downstream Processing
Expert in Downstream Processing Analysis
beef guy
Your expert guide in the world of steaks
4Runner Assistant
Vehicle support expert for the 2000 4Runner
Manim animator
Direct Speak
Helps you sound less like a politician in interviews, focusing on clear, direct communication.
Unreal
Generate an image in the style of Unreal Engine