Spaces:
Sleeping
Sleeping
| title: TalkingAIResearcher | |
| emoji: πππ | |
| colorFrom: red | |
| colorTo: purple | |
| sdk: streamlit | |
| sdk_version: 1.41.1 | |
| app_file: app.py | |
| pinned: true | |
| license: mit | |
| short_description: TalkingAIResearcher | |
| Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference | |
| #OPENAI_API_KEY=your_key | |
| #ANTHROPIC_API_KEY=your_key | |
| #HF_KEY=your_key | |
| Features: | |
| π― Core Configuration & Setup | |
| Configures Streamlit page with title "π²BikeAIπ Claude/GPT Research" | |
| π API Setup & Clients | |
| Initializes OpenAI, Anthropic, and HuggingFace API clients with environment variables | |
| π Session State Management | |
| Manages conversation history, transcripts, file editing states, and model selections | |
| π§ get_high_info_terms() | |
| Extracts meaningful keywords from text while filtering common stop words | |
| π·οΈ clean_text_for_filename() | |
| Sanitizes text to create valid filenames by removing special characters | |
| π generate_filename() | |
| Creates intelligent filenames based on content and timestamps | |
| πΎ create_file() | |
| Saves prompt and response content to files with smart naming | |
| π get_download_link() | |
| Generates base64-encoded download links for files | |
| π€ clean_for_speech() | |
| Prepares text for speech synthesis by removing special characters | |
| π£οΈ speech_synthesis_html() | |
| Creates HTML for browser-based speech synthesis | |
| π edge_tts_generate_audio() | |
| Generates MP3 audio files using Edge TTS | |
| π΅ speak_with_edge_tts() | |
| Wrapper for Edge TTS audio generation | |
| π§ play_and_download_audio() | |
| Creates audio player interface with download option | |
| πΈ process_image() | |
| Analyzes images using GPT-4V | |
| ποΈ process_audio() | |
| Transcribes audio using Whisper | |
| π₯ process_video() | |
| Extracts frames from video files | |
| π€ process_video_with_gpt() | |
| Analyzes video frames using GPT-4V | |
| π parse_arxiv_refs() | |
| Parses research paper references into structured format | |
| π perform_ai_lookup() | |
| Searches and processes arXiv papers with audio summaries | |
| π create_zip_of_files() | |
| Bundles multiple files into a zip with smart naming | |
| π load_files_for_sidebar() | |
| Organizes files by timestamp for sidebar display | |
| π·οΈ extract_keywords_from_md() | |
| Pulls keywords from markdown files for organization | |
| π display_file_manager_sidebar() | |
| Creates interactive sidebar for file management | |
| π¬ main() | |
| Orchestrates overall application flow and UI components | |