Spaces:
Running
Running
thatgeeman
commited on
Commit
·
aebf6db
0
Parent(s):
first commit
Browse files- .gitignore +9 -0
- .python-version +1 -0
- config.py +15 -0
- poetry.lock +0 -0
- pyproject.toml +15 -0
.gitignore
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.env
|
| 2 |
+
.venv
|
| 3 |
+
.gradio
|
| 4 |
+
*secret*
|
| 5 |
+
*.token_cache.json
|
| 6 |
+
*.log
|
| 7 |
+
*logs
|
| 8 |
+
*.tar
|
| 9 |
+
*__pycache__
|
.python-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
mcp
|
config.py
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
|
| 3 |
+
from dotenv import load_dotenv
|
| 4 |
+
|
| 5 |
+
load_dotenv()
|
| 6 |
+
|
| 7 |
+
# API Configuration
|
| 8 |
+
API_KEY = os.getenv("OPENAI_API_KEY", None)
|
| 9 |
+
if not API_KEY:
|
| 10 |
+
print("⚠️ API key not found in .env file!")
|
| 11 |
+
|
| 12 |
+
# Server configuration
|
| 13 |
+
GRADIO_SERVER_NAME = os.getenv("GRADIO_SERVER_NAME", "0.0.0.0")
|
| 14 |
+
GRADIO_SERVER_PORT = os.getenv("GRADIO_SERVER_PORT", "7860")
|
| 15 |
+
GRADIO_SHARE = os.getenv("GRADIO_SHARE", "False")
|
poetry.lock
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
pyproject.toml
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[project]
|
| 2 |
+
name = "mcp"
|
| 3 |
+
version = "0.1.0"
|
| 4 |
+
description = ""
|
| 5 |
+
authors = [
|
| 6 |
+
{ name = "thatgeeman", email = "[email protected]" },
|
| 7 |
+
]
|
| 8 |
+
readme = "README.md"
|
| 9 |
+
requires-python = ">=3.10"
|
| 10 |
+
dependencies = ["gradio (>=5.49.1,<6.0.0)"]
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
[build-system]
|
| 14 |
+
requires = ["poetry-core>=2.0.0,<3.0.0"]
|
| 15 |
+
build-backend = "poetry.core.masonry.api"
|