caviri commited on
Commit ·
30b5747
1
Parent(s): b77c9e9
feat: Fix for tmp_json
Browse filesFiles changed (8)
- .gitignore+1-1
- Dockerfile+8-4
- README.md+7-188
- app/assets/tmp_json/.gitkeepAdded
- app/main.py+1-1
- app/styling/style.py+13-13
- app/styling/theme.py+2-1
- requirements.txt+1-1
7 unmodified lines8910111213147 unmodified lines#Datatest/data/**data/**app/assets/tmp_json/**# C extensions*.so7 unmodified lines8910111213147 unmodified lines#Datatest/data/**data/**app/assets/tmp_json/*.json# C extensions*.so
123456730 unmodified lines38394041From ubuntu:latestRUN apt-get updateRUN apt-get install python3 python3-pip -y# https://stackoverflow.com/questions/75608323/how-do-i-solve-error-externally-managed-environment-every-time-i-use-pip-3# https://veronneau.org/python-311-pip-and-breaking-system-packages.html30 unmodified linesWORKDIR /digiwildENTRYPOINT python3 main.py123456789101130 unmodified lines42434445# From ubuntu:latest# RUN apt-get update# RUN apt-get install python3 python3-pip -yFROM ubuntu:22.04RUN apt updateRUN apt install python3.10 python3-pip -y# https://stackoverflow.com/questions/75608323/how-do-i-solve-error-externally-managed-environment-every-time-i-use-pip-3# https://veronneau.org/python-311-pip-and-breaking-system-packages.html30 unmodified linesWORKDIR /digiwildENTRYPOINT python3 app/main.py
12 unmodified lines131415161718195 unmodified lines2526272829302 unmodified lines3334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122212 unmodified lines## Docker```docker build -t ordes/digiwild:swallow .``````5 unmodified linespython3 main.py```## Needs- Camera with multiples pictures?2 unmodified lines- Comments- Symptomps selection (Dropdown)## ornitho.ch schemaAfter selecting the species```- dead- wounded- Collision with a means of transport- road vehicle- road type (Options)- highway- main road- secondary road- local road/path/trail- parking lot- other- unknown- infrastructure number (Open)- train- infrastructure number (Open)- aircraft- boat- other- unknown- Destruction / Deliberatly removed- hunting- shooting- bow- falconry- hounds hunting- digging up- other- unknown- trap- killing trap- pole trap- trap cage- corvids nasse- net- cage trap- fall-trap- glue trap- insect trap- other- unknown- poisoning- removal or direct capture- gassing- raptor captured at nest- brood destruction- traffic/trade- capture accident- scientific sample- other- unknown- fishing- drowned/tangled- beached with capture indications- other- unknown- other- unkown- Indirect destruction- pylone and electric grid- object (Options)- electric line- pole/pylon- other- unknown- cause (Options)- collision- electrocution- unknown- windfarm- other collision- Object (Options)- window- building- lighthouse- cable- wire fence/barbed wire- other crash- unknown- fall- Object (Options)- chimney- empty pole- hole/well- other- unknown- development work- Type (Options)- transport infrastructure- building- other- unknown- pollution / contamination- Type (Options)- oil pollution- chemical pollution- heavy metals- light- noise- plastic ingestion- other- unknown- agricultural net protection- vegetal / forest work- Type (Options)- clearing/mowing/plowing- tree felling/pruning- other- unknown- other- unknown- Natural cause- predation- responsible (Options)- cat- dog- rooster/hen- other domestic animal- wild birds- wild mammal- other- unknown- weather- Type (Options)- cold wave- drought- hail- lightening- storm- other- unknown- natural disaster- Type (Options)- fire- avalanche- rock fall- mudslide- volcanic eruption/ashes- other- unknown- nest fall- strading due to exhaustion- disease/parasite- accidental drowing- Container (Options)- drinking trough- pool- storm pool- irrigation pool- natural pool- flood- other container- unknown- other- unknown- Unknown- Event follow-up- Animal collected (Options)- Yes- No- Recipient (Options)- Veterinary- Care center- Local Museum- National Museum- Other- Radiography (Options)- Yes- No- Unknown- Given answer (Options)- Nothing- Complaint against X- Complaint- Police call- Discussion with the speaker- Press release- Unknown- Name of recipient / museum (Open)- Collection reference (Open)```12 unmodified lines131415161718195 unmodified lines2526272829303132333435362 unmodified lines39404112 unmodified lines## Docker```docker build -t ordes/digiwild .``````5 unmodified linespython3 main.py```### How to develop on docker```docker run -it -p 7860:3333 -v $(pwd):/digiwild```## Needs- Camera with multiples pictures?2 unmodified lines- Comments- Symptomps selection (Dropdown)
18 unmodified lines1920212223242518 unmodified linesfrom styling.theme import css# with gr.Blocks(theme=theme, css=css) as demo:with gr.Blocks(css=css) as demo:create_json_all_individuals()# ---------------------------------------------------------# Intro Text18 unmodified lines1920212223242518 unmodified linesfrom styling.theme import css# with gr.Blocks(theme=theme, css=css) as demo:with gr.Blocks(theme='shivi/calm_seafoam') as demo:create_json_all_individuals()# ---------------------------------------------------------# Intro Text
1 unmodified line2345678910111213141516171819201 unmodified linegr.HTML('''<style>.custom-button {background-color: #3B4C54;border: none;color: white;padding: 15px 32px;text-align: center;text-decoration: none;display: inline-block;font-size: 16px;margin: 4px 2px;cursor: pointer;border-radius: 8px;}</style>''')1 unmodified line2345678910111213141516171819201 unmodified linegr.HTML('''<style># .custom-button {# background-color: #3B4C54;# border: none;# color: white;# padding: 15px 32px;# text-align: center;# text-decoration: none;# display: inline-block;# font-size: 16px;# margin: 4px 2px;# cursor: pointer;# border-radius: 8px;# }</style>''')
123456import gradio as grcss = """.gradio-container {background: url(https://openclipart.org/image/2000px/279687)}/* Main background */1234567import gradio as grcss= ""css_old = """.gradio-container {background: url(https://openclipart.org/image/2000px/279687)}/* Main background */
2 unmodified lines34562 unmodified linesgeopygeopandaspillowdotenv2 unmodified lines34562 unmodified linesgeopygeopandaspillowpython-dotenv
.gitignore+1-1
Dockerfile+8-4
README.md+7-188
app/assets/tmp_json/.gitkeepAdded
app/main.py+1-1
app/styling/style.py+13-13
app/styling/theme.py+2-1
requirements.txt+1-1