Spaces:
Configuration error
Configuration error
Initial commit
Browse files
README.md
CHANGED
@@ -1,13 +1,75 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# VideoQ
|
2 |
+
|
3 |
+
#### Quick Answers, Skip Clickbait
|
4 |
+
- Skip the endless scrolling. VideoQ provides instant video insights.
|
5 |
+
- Ask Questions to YouTube video and Save Time
|
6 |
+
|
7 |
+
VideoQ is an AI-powered web application that processes YouTube video content using Gradio and LangChain, enhanced by Cohere embeddings for language understanding. This app allows users to input Youtube video link and receive processed results based on advanced language models.
|
8 |
+
|
9 |
+
### Features
|
10 |
+
- YouTube Video Processing: Automatically load and process video content. Currently support only English video whose transcripts are available.
|
11 |
+
- Cohere Embeddings: Use advanced embeddings to understand and process text data.
|
12 |
+
- Gradio Interface: An easy-to-use web interface for interaction.
|
13 |
+
|
14 |
+
|
15 |
+
### Installation
|
16 |
+
Follow these steps to set up and run the project on your local machine.
|
17 |
+
|
18 |
+
Prerequisites
|
19 |
+
Ensure you have the following installed:
|
20 |
+
|
21 |
+
1. Python 3.X
|
22 |
+
2. pip (Python package installer)
|
23 |
+
3. Clone the Repository
|
24 |
+
```bash
|
25 |
+
git clone https://github.com/yourusername/projectname.git
|
26 |
+
cd projectname
|
27 |
+
```
|
28 |
+
|
29 |
+
#### Install Dependencies
|
30 |
+
Install the required Python packages using the requirements.txt file:
|
31 |
+
```bash
|
32 |
+
pip install -r requirements.txt
|
33 |
+
```
|
34 |
+
|
35 |
+
Set Up Environment Variables
|
36 |
+
The application uses API keys that need to be set as environment variables. Ensure you have the necessary API keys (like the Cohere API key) and set them in your environment.
|
37 |
+
|
38 |
+
For Linux/macOS:
|
39 |
+
```bash
|
40 |
+
export COHERE_API_KEY=your_cohere_api_key
|
41 |
+
```
|
42 |
+
|
43 |
+
For Windows:
|
44 |
+
```bash
|
45 |
+
set COHERE_API_KEY=your_cohere_api_key
|
46 |
+
```
|
47 |
+
|
48 |
+
Running the Application
|
49 |
+
Once everything is set up, you can start the application by running:
|
50 |
+
|
51 |
+
```python
|
52 |
+
python app.py
|
53 |
+
```
|
54 |
+
|
55 |
+
This will launch the Gradio app, and you can access it via your web browser at http://localhost:7860.
|
56 |
+
|
57 |
+
### Usage
|
58 |
+
This tool is perfect for quickly getting insights from videos with clickbait titles or thumbnails—just ask your question instead of wasting time.
|
59 |
+
|
60 |
+
1. Input a YouTube Video URL: Enter the URL of the YouTube video you want to process.
|
61 |
+
2. Click "Load Document": Load the video content into the tool.
|
62 |
+
3. Start Chatting: Ask questions or discuss the video in the chat interface below.
|
63 |
+
|
64 |
+
The processed output will be displayed directly in the Gradio interface.
|
65 |
+
|
66 |
+
|
67 |
+
|
68 |
+
<!-- Contributing
|
69 |
+
If you'd like to contribute to this project, please fork the repository and use a feature branch. Pull requests are warmly welcome. -->
|
70 |
+
|
71 |
+
<!-- ### License
|
72 |
+
This project is licensed under the MIT License - see the LICENSE file for details. -->
|
73 |
+
|
74 |
+
### Acknowledgments
|
75 |
+
Special thanks ❤️ to the Gradio, LangChain, and Cohere teams for their amazing tools and support. This project wouldn't have been possible without their contributions to user-friendly interfaces, seamless language model integration, and powerful NLP capabilities.
|
app.py
CHANGED
@@ -118,4 +118,4 @@ with gr.Blocks(theme=gr.themes.Monochrome()) as demo:
|
|
118 |
|
119 |
clear_btn.click(lambda: None, None, chatbot_interface, queue=False)
|
120 |
|
121 |
-
demo.launch()
|
|
|
118 |
|
119 |
clear_btn.click(lambda: None, None, chatbot_interface, queue=False)
|
120 |
|
121 |
+
demo.launch(server_name="0.0.0.0", server_port=7860)
|