Spaces:
Sleeping
Sleeping
haha
Browse files
ui.py
CHANGED
|
@@ -12,18 +12,6 @@ st.title("SmolVLM Grounding")
|
|
| 12 |
|
| 13 |
API_BASE = os.getenv("API_BASE", "http://127.0.0.1:8000")
|
| 14 |
|
| 15 |
-
|
| 16 |
-
"""
|
| 17 |
-
with st.sidebar:
|
| 18 |
-
st.subheader("Generation settings")
|
| 19 |
-
max_new_tokens = st.slider("max_new_tokens", 1, 1024, 300, step=1)
|
| 20 |
-
temperature_on = st.toggle("Set temperature?", value=False)
|
| 21 |
-
temperature = st.slider("temperature", 0.0, 2.0, 0.2, step=0.05) if temperature_on else None
|
| 22 |
-
topp_on = st.toggle("Set top_p?", value=False)
|
| 23 |
-
top_p = st.slider("top_p", 0.05, 1.0, 0.95, step=0.05) if topp_on else None
|
| 24 |
-
st.caption("API base: " + API_BASE)
|
| 25 |
-
"""
|
| 26 |
-
|
| 27 |
def show_metrics(metrics: dict):
|
| 28 |
if not metrics:
|
| 29 |
return
|
|
|
|
| 12 |
|
| 13 |
API_BASE = os.getenv("API_BASE", "http://127.0.0.1:8000")
|
| 14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
def show_metrics(metrics: dict):
|
| 16 |
if not metrics:
|
| 17 |
return
|