File size: 1,270 Bytes
119fdce
 
 
 
 
 
 
 
 
 
08c9670
 
d4d155f
c47f858
 
 
78bed4c
d4d155f
78bed4c
a79cb6e
78bed4c
 
 
 
a79cb6e
78bed4c
 
 
 
a79cb6e
78bed4c
 
 
 
a79cb6e
78bed4c
 
 
882c297
78bed4c
882c297
78bed4c
a79cb6e
78bed4c
 
 
 
 
 
 
7e3f142
a79cb6e
78bed4c
 
 
 
7e3f142
a79cb6e
78bed4c
 
119fdce
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
---
title: YT Agent Streamlit
emoji: 🤖
sdk: docker
app_port: 8501
tags:
  - streamlit
license: apache-2.0
short_description: Example Space for running YT agent Streamlit app.
---
# yt-agent-streamlit
Example code for creating a YouTube agent with Streamlit and hosting via Hugging Face Spaces.

Resources:
- [HF Spaces app](https://huggingface.co/spaces/shawhin/yt-agent-streamlit)

## How to Run This Example

1. Clone this repo

    ```
    git clone https://github.com/ShawhinT/yt-agent-streamlit.git
    ```
2. Open repo directory

    ```
    cd yt-agent-streamlit
    ```
3. Install dependencies

    ```
    uv sync
    ```
4. Run Streamlit app

    ```
    uv run streamlit run main.py
    ```

## Hosting on HF Space

1. [Create new](https://huggingface.co/new-space) Hugging Face Space

    ```
    Name: yt-agent-streamlit
    Description: Example Space for running YT agent Streamlit app.
    Space SDK: Docker
    Docker Template: Blank
    Space Hardware: CPU
    ```
2. Add another remote to git repo

    ```
    # In your yt-agent-streamlit directory
    git remote add hf https://huggingface.co/spaces/{your_hr_username}/yt-agent-streamlit.git
    ```
3. Push code to HF spaces (may need to force first push)

    ```
    git push --force hf
    ```