Skip to content

Commit

Permalink
add .env.example; cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nwaughachukwuma committed Oct 30, 2024
1 parent ff24c85 commit b6b24f7
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 21 deletions.
9 changes: 9 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
PROJECT_ID="your-project-id"
GOOGLE_APPLICATION_CREDENTIALS="path/to/your/serviceAccount.json"

OPENAI_API_KEY="your-openai-api-key"
ANTHROPIC_API_KEY="your-anthropic-api-key"
GEMINI_API_KEY="your-gemini-api-key"
ELEVENLABS_API_KEY="your-elevenlabs-api-key"

APP_URL=http://localhost:8501
16 changes: 4 additions & 12 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,14 @@ jobs:
runs-on: ubuntu-latest
outputs:
VERSION: ${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.number) || format('main-{0}', steps.prepare_env.outputs.SHORT_SHA) }}
MAIN_OR_TAGGED: ${{ fromJSON(env.MAIN) || (fromJSON(steps.prepare_env.outputs.TAGGED) && steps.prepare_env.outputs.TAG_BRANCH_NAME == 'main') }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- id: prepare_env
run: |
echo "TAGGED=${{ startsWith(github.ref, 'refs/tags/api') }}" >> $GITHUB_OUTPUT
SHORT_SHA=$(git rev-parse --short HEAD)
echo "SHORT_SHA=$SHORT_SHA" >> $GITHUB_OUTPUT
RAW=$(git branch -r --contains $SHORT_SHA)
TAG_BRANCH_NAME="${RAW##*/}"
echo "TAG_BRANCH_NAME=$TAG_BRANCH_NAME" >> $GITHUB_OUTPUT
echo "SHORT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
lint:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -106,17 +99,16 @@ jobs:
flags: "--allow-unauthenticated --memory=32Gi --cpu=8 --execution-environment=gen2 --concurrency=80 --max-instances=10"

- name: health-check
run: curl -f "${{ steps.deploy.outputs.url }}"
- run: curl -f "${{ steps.deploy.outputs.url }}"
- uses: marocchino/sticky-pull-request-comment@v2
with:
header: api
header: app
message: |
app: ${{ steps.deploy.outputs.url }} (${{ github.event.pull_request.head.sha }})
promote:
runs-on: ubuntu-latest
if: (needs.prepare.outputs.MAIN_OR_TAGGED == 'true')
if: (needs.prepare.outputs.MAIN == 'true')
needs: [prepare, deploy, lint]
timeout-minutes: 3
steps:
Expand Down
2 changes: 2 additions & 0 deletions .streamlit/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[browser]
gatherUsageStats = false
10 changes: 1 addition & 9 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,7 @@ async def main():

st.title("🎧 Audiora")
st.subheader("Listen to anything, anytime, leveraging AI")

st.sidebar.markdown(
"""
<p>
A <a href="https://veedo.ai">VeedoAI</a> project. (c) 2024
</p>
""",
unsafe_allow_html=True,
)
st.sidebar.info('A VeedoAI project. (c) 2024 ')

# Sidebar for content type selection
st.sidebar.title("Audiocast Info")
Expand Down

0 comments on commit b6b24f7

Please sign in to comment.