Chrisyichuan commited on
Commit
8b9f0b3
Β·
1 Parent(s): 3f3e43a

change ui for user-friendly

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. geo_bot.py +8 -8
app.py CHANGED
@@ -66,7 +66,7 @@ with st.sidebar:
66
 
67
  dataset_choice = st.selectbox("Dataset", available_datasets, index=0)
68
  model_choice = st.selectbox("Model", list(MODELS_CONFIG.keys()), index=list(MODELS_CONFIG.keys()).index(DEFAULT_MODEL))
69
- steps_per_sample = st.slider("Max Steps", 3, 20, 10)
70
  temperature = st.slider(
71
  "Temperature",
72
  0.0,
 
66
 
67
  dataset_choice = st.selectbox("Dataset", available_datasets, index=0)
68
  model_choice = st.selectbox("Model", list(MODELS_CONFIG.keys()), index=list(MODELS_CONFIG.keys()).index(DEFAULT_MODEL))
69
+ steps_per_sample = st.slider("Max Steps", 1, 20, 10)
70
  temperature = st.slider(
71
  "Temperature",
72
  0.0,
geo_bot.py CHANGED
@@ -43,20 +43,20 @@ AGENT_PROMPT_TEMPLATE = """
43
 
44
  4. **Be Decisive:** A unique, definitive clue (full address, rare town name, etc.) β‡’ `GUESS` immediately.
45
 
46
- 5. **Final-Step Rule:** If **Remaining Steps = 1**, you **MUST** `GUESS`.
47
 
48
  ────────────────────────────────
 
 
 
49
  **Action History**
50
  {history_text}
51
 
52
  ────────────────────────────────
53
- **OUTPUT FORMAT**
54
-
55
- Return **one** JSON object wrapped in ```json … ```:
56
-
57
- **JSON Output Format:**
58
- Your response MUST be a valid JSON object wrapped in json ... .
59
- {{"reasoning": "...", "action_details": {{"action": "GUESS", "lat": <float>, "lon": <float>}} }}
60
  """
61
 
62
  BENCHMARK_PROMPT = """
 
43
 
44
  4. **Be Decisive:** A unique, definitive clue (full address, rare town name, etc.) β‡’ `GUESS` immediately.
45
 
46
+ 5. **Final-Step Rule:** If **Remaining Steps = 1**, you **MUST** `GUESS` and you should carefully check the image and the surroundings.
47
 
48
  ────────────────────────────────
49
+ **Context & Task:**
50
+ Analyze your full journey history and current view, apply the Core Principles, and decide your next action in the required JSON format.
51
+
52
  **Action History**
53
  {history_text}
54
 
55
  ────────────────────────────────
56
+ **JSON Output Format:**More actions
57
+ Your response MUST be a valid JSON object wrapped in ```json ... ```.
58
+ - For exploration: `{{"reasoning": "...", "action_details": {{"action": "ACTION_NAME"}} }}`
59
+ - For the final guess: `{{"reasoning": "...", "action_details": {{"action": "GUESS", "lat": <float>, "lon": <float>}} }}`
 
 
 
60
  """
61
 
62
  BENCHMARK_PROMPT = """