Spaces:
Sleeping
Sleeping
Initial commit for playground directory
Browse files- .gitignore +1 -0
- app.py +7 -0
- poetry.lock +0 -0
- pyproject.toml +21 -0
.gitignore
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
".env"
|
app.py
CHANGED
@@ -3,6 +3,13 @@ import gradio as gr
|
|
3 |
import requests
|
4 |
import inspect
|
5 |
import pandas as pd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
# (Keep Constants as is)
|
8 |
# --- Constants ---
|
|
|
3 |
import requests
|
4 |
import inspect
|
5 |
import pandas as pd
|
6 |
+
from dotenv import load_dotenv
|
7 |
+
|
8 |
+
# Load environment variables from .env file
|
9 |
+
load_dotenv()
|
10 |
+
print(os.getenv("HF_TOKEN"))
|
11 |
+
|
12 |
+
|
13 |
|
14 |
# (Keep Constants as is)
|
15 |
# --- Constants ---
|
poetry.lock
ADDED
The diff for this file is too large to render.
See raw diff
|
|
pyproject.toml
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[project]
|
2 |
+
name = "final-assignment-template"
|
3 |
+
version = "0.1.0"
|
4 |
+
description = ""
|
5 |
+
authors = [
|
6 |
+
{name = "Tzur Vaich",email = "[email protected]"}
|
7 |
+
]
|
8 |
+
readme = "README.md"
|
9 |
+
requires-python = ">=3.12"
|
10 |
+
dependencies = [
|
11 |
+
"smolagents (>=1.14.0,<2.0.0)",
|
12 |
+
"gradio[oauth] (>=5.27.0,<6.0.0)",
|
13 |
+
"requests (>=2.32.3,<3.0.0)",
|
14 |
+
"pandas (>=2.2.3,<3.0.0)",
|
15 |
+
"python-dotenv (>=1.1.0,<2.0.0)"
|
16 |
+
]
|
17 |
+
|
18 |
+
|
19 |
+
[build-system]
|
20 |
+
requires = ["poetry-core>=2.0.0,<3.0.0"]
|
21 |
+
build-backend = "poetry.core.masonry.api"
|