Spaces:
Runtime error
Runtime error
mblackman
commited on
Commit
•
1df8c04
1
Parent(s):
4f6c129
Get secrets from env variables
Browse files- .gitignore +0 -3
- app.py +3 -3
- requirements.txt +1 -3
.gitignore
CHANGED
@@ -364,8 +364,5 @@ venv/
|
|
364 |
*.log
|
365 |
sweep/
|
366 |
|
367 |
-
# Streamlit secrets
|
368 |
-
.streamlit
|
369 |
-
|
370 |
# Gradio
|
371 |
gradio_cached_examples/
|
|
|
364 |
*.log
|
365 |
sweep/
|
366 |
|
|
|
|
|
|
|
367 |
# Gradio
|
368 |
gradio_cached_examples/
|
app.py
CHANGED
@@ -2,12 +2,12 @@ from transformers import pipeline
|
|
2 |
import gradio as gr
|
3 |
import praw
|
4 |
from praw.models import MoreComments
|
5 |
-
import
|
6 |
|
7 |
pipe = pipeline(model="facebook/bart-large-mnli")
|
8 |
reddit = praw.Reddit(
|
9 |
-
client_id=
|
10 |
-
client_secret=
|
11 |
user_agent="Hugging Face Vibe Checker",
|
12 |
)
|
13 |
|
|
|
2 |
import gradio as gr
|
3 |
import praw
|
4 |
from praw.models import MoreComments
|
5 |
+
import os
|
6 |
|
7 |
pipe = pipeline(model="facebook/bart-large-mnli")
|
8 |
reddit = praw.Reddit(
|
9 |
+
client_id=os.environ.get("reddit_client_id"),
|
10 |
+
client_secret=os.environ.get("reddit_client_secret"),
|
11 |
user_agent="Hugging Face Vibe Checker",
|
12 |
)
|
13 |
|
requirements.txt
CHANGED
@@ -2,6 +2,4 @@ pylint
|
|
2 |
transformers
|
3 |
torch
|
4 |
praw
|
5 |
-
gradio
|
6 |
-
altair
|
7 |
-
streamlit
|
|
|
2 |
transformers
|
3 |
torch
|
4 |
praw
|
5 |
+
gradio
|
|
|
|