Spaces:
Runtime error
Runtime error
charlesfrye
commited on
Commit
•
09cd3a8
1
Parent(s):
4a2adcb
sets up environment, local serving, and configs space
Browse files- .gitignore +2 -0
- .python-version +1 -0
- Makefile +19 -0
- README.md +9 -5
- requirements.txt +0 -1
.gitignore
CHANGED
@@ -4,3 +4,5 @@ documents/stored.pkl
|
|
4 |
.env
|
5 |
|
6 |
__pycache__
|
|
|
|
|
|
4 |
.env
|
5 |
|
6 |
__pycache__
|
7 |
+
|
8 |
+
flagged
|
.python-version
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
ask-fsdl-backend
|
Makefile
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
ifneq (,$(wildcard ./.env))
|
2 |
+
include .env
|
3 |
+
# assume includes OPENAI_API_KEY for LLM inference
|
4 |
+
export
|
5 |
+
endif
|
6 |
+
|
7 |
+
.PHONY: help
|
8 |
+
.DEFAULT_GOAL := help
|
9 |
+
|
10 |
+
help: ## get a list of all the targets, and their short descriptions
|
11 |
+
@# source for the incantation: https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
|
12 |
+
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' Makefile | awk 'BEGIN {FS = ":.*?##"}; {printf "\033[36m%-12s\033[0m %s\n", $$1, $$2}'
|
13 |
+
|
14 |
+
|
15 |
+
serve: ## serve this locally
|
16 |
+
python app.py
|
17 |
+
|
18 |
+
environment: ## installs requirements
|
19 |
+
pip install -q -r requirements.txt
|
README.md
CHANGED
@@ -1,12 +1,16 @@
|
|
1 |
---
|
2 |
-
title: Ask
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: gradio
|
7 |
sdk_version: 3.16.2
|
8 |
app_file: app.py
|
9 |
pinned: false
|
|
|
10 |
---
|
11 |
|
12 |
-
|
|
|
|
|
|
|
|
1 |
---
|
2 |
+
title: Ask FSDL
|
3 |
+
emoji: 🥞
|
4 |
+
colorFrom: red
|
5 |
+
colorTo: yellow
|
6 |
sdk: gradio
|
7 |
sdk_version: 3.16.2
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
+
python_version: 3.10.9
|
11 |
---
|
12 |
|
13 |
+
Ask questions about the content of the
|
14 |
+
[Full Stack Deep Learning course](https://fullstackdeeplearning.com/course/)
|
15 |
+
and get answers,
|
16 |
+
all in natural language.
|
requirements.txt
CHANGED
@@ -4,4 +4,3 @@ python-dotenv==0.21.0
|
|
4 |
faiss-cpu==1.7.3
|
5 |
gradio==3.16.2
|
6 |
srt
|
7 |
-
discord.py
|
|
|
4 |
faiss-cpu==1.7.3
|
5 |
gradio==3.16.2
|
6 |
srt
|
|