Spaces:
Running
Running
apple muncy
commited on
Commit
·
0d959d8
1
Parent(s):
7162d87
Add details
Browse filesSigned-off-by: apple muncy <[email protected]>
- Dockerfile +1 -1
- app.py +1 -1
- env.example +3 -3
Dockerfile
CHANGED
@@ -30,4 +30,4 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
|
30 |
CMD curl -f http://localhost:8000/ || exit 1
|
31 |
|
32 |
# Run the application
|
33 |
-
CMD ["python", "
|
|
|
30 |
CMD curl -f http://localhost:8000/ || exit 1
|
31 |
|
32 |
# Run the application
|
33 |
+
CMD ["python", "app.py"]
|
app.py
CHANGED
@@ -17,7 +17,7 @@ load_dotenv()
|
|
17 |
# Configuration
|
18 |
WEBHOOK_SECRET = os.getenv("WEBHOOK_SECRET", "your-webhook-secret")
|
19 |
HF_TOKEN = os.getenv("HF_TOKEN")
|
20 |
-
HF_MODEL = os.getenv("HF_MODEL", "
|
21 |
# Use a valid provider literal from the documentation
|
22 |
DEFAULT_PROVIDER: Literal["hf-inference"] = "hf-inference"
|
23 |
HF_PROVIDER = os.getenv("HF_PROVIDER", DEFAULT_PROVIDER)
|
|
|
17 |
# Configuration
|
18 |
WEBHOOK_SECRET = os.getenv("WEBHOOK_SECRET", "your-webhook-secret")
|
19 |
HF_TOKEN = os.getenv("HF_TOKEN")
|
20 |
+
HF_MODEL = os.getenv("HF_MODEL", "Qwen/Qwen2.5-72B-Instruct")
|
21 |
# Use a valid provider literal from the documentation
|
22 |
DEFAULT_PROVIDER: Literal["hf-inference"] = "hf-inference"
|
23 |
HF_PROVIDER = os.getenv("HF_PROVIDER", DEFAULT_PROVIDER)
|
env.example
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
# Webhook Configuration
|
2 |
-
WEBHOOK_SECRET=
|
3 |
|
4 |
# Hugging Face Configuration
|
5 |
HF_TOKEN=your-huggingface-token-here
|
6 |
|
7 |
# Model Configuration (optional)
|
8 |
-
HF_MODEL=
|
9 |
HF_PROVIDER=huggingface
|
10 |
|
11 |
# Optional: Custom bot username for mention detection
|
12 |
-
BOT_USERNAME=discussion-bot
|
|
|
1 |
# Webhook Configuration
|
2 |
+
WEBHOOK_SECRET=e2ece32274eb3474b9e90d5635697f784350d096bf9cb28d6a8dade576e5ca88
|
3 |
|
4 |
# Hugging Face Configuration
|
5 |
HF_TOKEN=your-huggingface-token-here
|
6 |
|
7 |
# Model Configuration (optional)
|
8 |
+
HF_MODEL=Qwen/Qwen2.5-72B-Instruct
|
9 |
HF_PROVIDER=huggingface
|
10 |
|
11 |
# Optional: Custom bot username for mention detection
|
12 |
+
BOT_USERNAME=discussion-bot
|