Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- .github/workflows/update_space.yml +28 -28
- agents.py +23 -23
.github/workflows/update_space.yml
CHANGED
|
@@ -1,28 +1,28 @@
|
|
| 1 |
-
name: Run Python script
|
| 2 |
-
|
| 3 |
-
on:
|
| 4 |
-
push:
|
| 5 |
-
branches:
|
| 6 |
-
- main
|
| 7 |
-
|
| 8 |
-
jobs:
|
| 9 |
-
build:
|
| 10 |
-
runs-on: ubuntu-latest
|
| 11 |
-
|
| 12 |
-
steps:
|
| 13 |
-
- name: Checkout
|
| 14 |
-
uses: actions/checkout@v2
|
| 15 |
-
|
| 16 |
-
- name: Set up Python
|
| 17 |
-
uses: actions/setup-python@v2
|
| 18 |
-
with:
|
| 19 |
-
python-version: '3.9'
|
| 20 |
-
|
| 21 |
-
- name: Install Gradio
|
| 22 |
-
run: python -m pip install gradio
|
| 23 |
-
|
| 24 |
-
- name: Log in to Hugging Face
|
| 25 |
-
run: python -c 'import huggingface_hub; huggingface_hub.login(token="${{ secrets.hf_token }}")'
|
| 26 |
-
|
| 27 |
-
- name: Deploy to Spaces
|
| 28 |
-
run: gradio deploy
|
|
|
|
| 1 |
+
name: Run Python script
|
| 2 |
+
|
| 3 |
+
on:
|
| 4 |
+
push:
|
| 5 |
+
branches:
|
| 6 |
+
- main
|
| 7 |
+
|
| 8 |
+
jobs:
|
| 9 |
+
build:
|
| 10 |
+
runs-on: ubuntu-latest
|
| 11 |
+
|
| 12 |
+
steps:
|
| 13 |
+
- name: Checkout
|
| 14 |
+
uses: actions/checkout@v2
|
| 15 |
+
|
| 16 |
+
- name: Set up Python
|
| 17 |
+
uses: actions/setup-python@v2
|
| 18 |
+
with:
|
| 19 |
+
python-version: '3.9'
|
| 20 |
+
|
| 21 |
+
- name: Install Gradio
|
| 22 |
+
run: python -m pip install gradio
|
| 23 |
+
|
| 24 |
+
- name: Log in to Hugging Face
|
| 25 |
+
run: python -c 'import huggingface_hub; huggingface_hub.login(token="${{ secrets.hf_token }}")'
|
| 26 |
+
|
| 27 |
+
- name: Deploy to Spaces
|
| 28 |
+
run: gradio deploy
|
agents.py
CHANGED
|
@@ -1,23 +1,23 @@
|
|
| 1 |
-
from crewai import Agent
|
| 2 |
-
from gradio import Markdown
|
| 3 |
-
|
| 4 |
-
proposer = Agent(
|
| 5 |
-
role="Proposer",
|
| 6 |
-
goal="Argue that being vegan is better for the environment",
|
| 7 |
-
backstory="You are a passionate environmentalist with deep knowledge in sustainability and climate science.",
|
| 8 |
-
verbose=True
|
| 9 |
-
)
|
| 10 |
-
|
| 11 |
-
opposer = Agent(
|
| 12 |
-
role="Opposer",
|
| 13 |
-
goal="Argue that being vegan is not necessarily better for the environment",
|
| 14 |
-
backstory="You are a critical thinker who questions mainstream beliefs and supports nuanced ecological arguments.",
|
| 15 |
-
verbose=True
|
| 16 |
-
)
|
| 17 |
-
|
| 18 |
-
judge = Agent(
|
| 19 |
-
role="Judge",
|
| 20 |
-
goal="Impartially evaluate the arguments and decide who made a stronger case",
|
| 21 |
-
backstory="You are a neutral academic with expertise in logic, debate, and environmental science.",
|
| 22 |
-
verbose=True
|
| 23 |
-
)
|
|
|
|
| 1 |
+
from crewai import Agent
|
| 2 |
+
from gradio import Markdown
|
| 3 |
+
|
| 4 |
+
proposer = Agent(
|
| 5 |
+
role="Proposer",
|
| 6 |
+
goal="Argue that being vegan is better for the environment",
|
| 7 |
+
backstory="You are a passionate environmentalist with deep knowledge in sustainability and climate science.",
|
| 8 |
+
verbose=True
|
| 9 |
+
)
|
| 10 |
+
|
| 11 |
+
opposer = Agent(
|
| 12 |
+
role="Opposer",
|
| 13 |
+
goal="Argue that being vegan is not necessarily better for the environment",
|
| 14 |
+
backstory="You are a critical thinker who questions mainstream beliefs and supports nuanced ecological arguments.",
|
| 15 |
+
verbose=True
|
| 16 |
+
)
|
| 17 |
+
|
| 18 |
+
judge = Agent(
|
| 19 |
+
role="Judge",
|
| 20 |
+
goal="Impartially evaluate the arguments and decide who made a stronger case",
|
| 21 |
+
backstory="You are a neutral academic with expertise in logic, debate, and environmental science.",
|
| 22 |
+
verbose=True
|
| 23 |
+
)
|