File size: 897 Bytes
22d61cc
 
 
 
 
 
 
 
 
 
 
 
 
33080cc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
title: Rag
emoji: 🐢
colorFrom: gray
colorTo: indigo
sdk: gradio
sdk_version: 5.12.0
app_file: app.py
pinned: false
short_description: Just another rag but with Images 🖼️
---

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference

## Local Debug

Highly recommend VS Code, makes life easy.

1. Create Virtual environment with name `sb-rag` using the below command
    `python -m venv sb-rag`

2. Activate the environemnt (create new terminal VS Code to automatically do so)

3. Edit `.vscode/launch.json`. Fill in the environment variable `HF_SERVERLESS_API`.

4. Start VS Code debugger.

## References

1. UI Blocks Concepts: https://huggingface.co/learn/nlp-course/en/chapter9/7
2. UI Row-Column Arrangement: https://www.gradio.app/guides/controlling-layout
3. Show caption in image gallery: https://github.com/gradio-app/gradio/issues/3364