File size: 2,423 Bytes
ea6602a
4635abd
 
ea6602a
 
 
 
 
03becb4
ea6602a
4635abd
ea6602a
 
 
2e601c1
 
 
 
 
03becb4
2e601c1
03becb4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
---
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