Spaces:
Running
Running
Upload 35 files
Browse files- backend/.env +1 -0
- backend/config.py +19 -0
backend/.env
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
HUGGINGFACE_API_TOKEN = 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
|
backend/config.py
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
from dotenv import load_dotenv
|
3 |
+
|
4 |
+
# Load environment variables
|
5 |
+
load_dotenv()
|
6 |
+
|
7 |
+
# Get Hugging Face API token
|
8 |
+
HUGGINGFACE_API_TOKEN = os.getenv('HUGGINGFACE_API_TOKEN')
|
9 |
+
|
10 |
+
# API configuration
|
11 |
+
API_CONFIG = {
|
12 |
+
'token': HUGGINGFACE_API_TOKEN,
|
13 |
+
'models': {
|
14 |
+
'summarization': 'meta-llama/Llama-2-70b-chat-hf',
|
15 |
+
'question_answering': 'deepseek-ai/DeepSeek-V2-Chat',
|
16 |
+
'image_captioning': 'Qwen/Qwen2.5-VL-7B-Instruct',
|
17 |
+
'translation': 'facebook/mbart-large-50-many-to-many-mmt'
|
18 |
+
}
|
19 |
+
}
|