Skip to content

Commit

Permalink
refactoring and change the github action
Browse files Browse the repository at this point in the history
  • Loading branch information
VinciGit00 committed Feb 22, 2024
1 parent 58d8094 commit d889f08
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Write Date to File
name: Write Random Value to File

on:
push:
Expand All @@ -8,7 +8,7 @@ on:
- cron: "0 21 */1 * *"

jobs:
write_date:
write_random_value:
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand All @@ -19,11 +19,11 @@ jobs:
with:
python-version: '3.x'

- name: Write current date to file
- name: Write random value to file
run: |
echo $(date +%Y-%m-%d) > current_date.txt
echo $RANDOM > current_value.txt
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git add current_date.txt
git commit -m "Update current date"
git add current_value.txt
git commit -m "Update current value"
git push
File renamed without changes
File renamed without changes
File renamed without changes
12 changes: 6 additions & 6 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
with st.sidebar:
st.write("**Usage**")
st.write("Add the api key")
st.write("Example of tasks:")
st.write("- a")
st.write("- b")
st.write("Example of prompt:")
st.write("- Given a link scrape the website")
st.write("- Given a link scrape the number of stars on github")

st.title("Scrapegraph-ai")
left_co, cent_co,last_co = st.columns(3)
with cent_co:
st.image("scrapegraphai_logo.png")
st.image("assets/scrapegraphai_logo.png")


key = st.text_input("API key")
Expand All @@ -29,7 +29,7 @@

with cent_co2:
discord_link = "https://discord.gg/DujC7HG8"
discord_logo = base64.b64encode(open("discord.png", "rb").read()).decode()
discord_logo = base64.b64encode(open("assets/discord.png", "rb").read()).decode()
st.markdown(
f"""<a href="{discord_link}" target="_blank">
<img src="data:image/png;base64,{discord_logo}" width="25">
Expand All @@ -39,7 +39,7 @@

with last_co2:
discord_link = "https://github.com/VinciGit00/Scrapegraph-ai"
discord_logo = base64.b64encode(open("github.png", "rb").read()).decode()
discord_logo = base64.b64encode(open("assets/github.png", "rb").read()).decode()
st.markdown(
f"""<a href="{discord_link}" target="_blank">
<img src="data:image/png;base64,{discord_logo}" width="25">
Expand Down

0 comments on commit d889f08

Please sign in to comment.