Spaces:
Sleeping
Sleeping
rmm
commited on
Commit
Β·
0a5ba7e
1
Parent(s):
02e28ee
chore: moved demo/example scripts to snippets
Browse files
call_models/entry_and_hotdog.py
CHANGED
|
@@ -1,27 +1,26 @@
|
|
| 1 |
-
import datetime
|
| 2 |
-
import os
|
| 3 |
import json
|
| 4 |
import logging
|
|
|
|
| 5 |
import tempfile
|
|
|
|
| 6 |
import pandas as pd
|
| 7 |
import streamlit as st
|
| 8 |
import folium
|
| 9 |
from streamlit_folium import st_folium
|
| 10 |
from huggingface_hub import HfApi
|
| 11 |
-
|
| 12 |
-
|
| 13 |
|
| 14 |
-
import whale_viewer as sw_wv
|
| 15 |
-
import input_handling as sw_inp
|
| 16 |
import alps_map as sw_am
|
| 17 |
-
import
|
| 18 |
import obs_map as sw_map
|
| 19 |
import st_logs as sw_logs
|
|
|
|
|
|
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
-
from transformers import pipeline
|
| 24 |
-
from transformers import AutoModelForImageClassification
|
| 25 |
|
| 26 |
# setup for the ML model on huggingface (our wrapper)
|
| 27 |
os.environ["PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION"] = "python"
|
|
|
|
| 1 |
+
#import datetime
|
|
|
|
| 2 |
import json
|
| 3 |
import logging
|
| 4 |
+
import os
|
| 5 |
import tempfile
|
| 6 |
+
|
| 7 |
import pandas as pd
|
| 8 |
import streamlit as st
|
| 9 |
import folium
|
| 10 |
from streamlit_folium import st_folium
|
| 11 |
from huggingface_hub import HfApi
|
| 12 |
+
from transformers import pipeline
|
| 13 |
+
from transformers import AutoModelForImageClassification
|
| 14 |
|
|
|
|
|
|
|
| 15 |
import alps_map as sw_am
|
| 16 |
+
import input_handling as sw_inp
|
| 17 |
import obs_map as sw_map
|
| 18 |
import st_logs as sw_logs
|
| 19 |
+
import whale_gallery as sw_wg
|
| 20 |
+
import whale_viewer as sw_wv
|
| 21 |
|
| 22 |
|
| 23 |
|
|
|
|
|
|
|
| 24 |
|
| 25 |
# setup for the ML model on huggingface (our wrapper)
|
| 26 |
os.environ["PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION"] = "python"
|
{call_models β snippets}/click_map.py
RENAMED
|
File without changes
|
{call_models β snippets}/d_entry.py
RENAMED
|
File without changes
|
{call_models β snippets}/hotdogs.py
RENAMED
|
File without changes
|
{call_models β snippets}/test_upload.py
RENAMED
|
File without changes
|