Spaces:
Sleeping
Sleeping
Upload 227 files
Browse filesthe engine was crashing because of a missing config.yaml and the README.md was not in the root directory. I've created the missing files and added error handling to app.py. Please push these changes to Hugging Face.
- README.md +24 -13
- app.py +6 -1
- config.yaml +8 -0
README.md
CHANGED
|
@@ -1,19 +1,30 @@
|
|
| 1 |
---
|
| 2 |
-
title: Deer
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
-
sdk:
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
- streamlit
|
| 10 |
pinned: false
|
| 11 |
-
short_description: Streamlit template space
|
| 12 |
---
|
| 13 |
|
| 14 |
-
#
|
| 15 |
|
| 16 |
-
|
| 17 |
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Deer-Fire-Scraper
|
| 3 |
+
emoji: 馃
|
| 4 |
+
colorFrom: green
|
| 5 |
+
colorTo: blue
|
| 6 |
+
sdk: streamlit
|
| 7 |
+
sdk_version: 1.42.0
|
| 8 |
+
app_file: app.py
|
|
|
|
| 9 |
pinned: false
|
|
|
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# 馃 Deer-Fire-Scraper
|
| 13 |
|
| 14 |
+
Esta es una aplicaci贸n de Streamlit que utiliza **deer-flow** y **firecrawl-py** para realizar scraping avanzado y orquestaci贸n de agentes.
|
| 15 |
|
| 16 |
+
## Setup Local
|
| 17 |
+
|
| 18 |
+
1. Instala las dependencias:
|
| 19 |
+
```bash
|
| 20 |
+
pip install -r requirements.txt
|
| 21 |
+
```
|
| 22 |
+
|
| 23 |
+
2. Ejecuta la app:
|
| 24 |
+
```bash
|
| 25 |
+
streamlit run app.py
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
## Configuraci贸n Hugging Face Spaces
|
| 29 |
+
|
| 30 |
+
Este repositorio est谩 configurado para ejecutarse directamente en Hugging Face Spaces usando el SDK de Streamlit.
|
app.py
CHANGED
|
@@ -11,7 +11,12 @@ HARNESS_PATH = PROJECT_ROOT / "backend" / "packages" / "harness"
|
|
| 11 |
if str(HARNESS_PATH) not in sys.path:
|
| 12 |
sys.path.append(str(HARNESS_PATH))
|
| 13 |
|
| 14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
@st.cache_resource
|
| 17 |
def get_workflow_engine(concurrency_limit: int = 10):
|
|
|
|
| 11 |
if str(HARNESS_PATH) not in sys.path:
|
| 12 |
sys.path.append(str(HARNESS_PATH))
|
| 13 |
|
| 14 |
+
try:
|
| 15 |
+
from workflow import Flow
|
| 16 |
+
except Exception as e:
|
| 17 |
+
st.error(f"Error fatal al inicializar el motor de Deer-Flow: {e}")
|
| 18 |
+
st.info("Aseg煤rate de que config.yaml est茅 presente en la ra铆z.")
|
| 19 |
+
st.stop()
|
| 20 |
|
| 21 |
@st.cache_resource
|
| 22 |
def get_workflow_engine(concurrency_limit: int = 10):
|
config.yaml
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
config_version: 3
|
| 2 |
+
models: []
|
| 3 |
+
sandbox:
|
| 4 |
+
use: deerflow.sandbox.local:LocalSandboxProvider
|
| 5 |
+
tools:
|
| 6 |
+
- name: web_search
|
| 7 |
+
group: web
|
| 8 |
+
use: deerflow.community.tavily.tools:web_search_tool
|