milwright commited on
Commit
95292b0
·
verified ·
1 Parent(s): 8a73c1d

Upload 4 files

Browse files
Files changed (3) hide show
  1. README.md +5 -5
  2. app.py +9 -9
  3. config.json +13 -15
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- title: Socratic Dialogue Partner
3
  emoji: 💬
4
  colorFrom: blue
5
  colorTo: green
@@ -8,12 +8,12 @@ sdk_version: 5.39.0
8
  app_file: app.py
9
  pinned: false
10
  license: mit
11
- short_description: Socratic dialogue partner based on Phaedrus
12
  ---
13
 
14
- # Socratic Dialogue Partner
15
 
16
- Socratic dialogue partner based on Phaedrus
17
 
18
  ## Quick Setup
19
 
@@ -42,7 +42,7 @@ Socratic dialogue partner based on Phaedrus
42
  Your Space should now be running! Try the example prompts or ask your own questions.
43
 
44
  ## Configuration
45
- - **Model**: openai/gpt-4.1-nano
46
  - **API Key Variable**: API_KEY
47
  - **HF Token Variable**: HF_TOKEN (for auto-updates)
48
  - **Access Control**: Enabled (ACCESS_CODE)
 
1
  ---
2
+ title: STEM Adventure Games
3
  emoji: 💬
4
  colorFrom: blue
5
  colorTo: green
 
8
  app_file: app.py
9
  pinned: false
10
  license: mit
11
+ short_description: Interactive STEM adventure game guide
12
  ---
13
 
14
+ # STEM Adventure Games
15
 
16
+ Interactive STEM adventure game guide
17
 
18
  ## Quick Setup
19
 
 
42
  Your Space should now be running! Try the example prompts or ask your own questions.
43
 
44
  ## Configuration
45
+ - **Model**: qwen/qwen3-30b-a3b-instruct-2507
46
  - **API Key Variable**: API_KEY
47
  - **HF Token Variable**: HF_TOKEN (for auto-updates)
48
  - **Access Control**: Enabled (ACCESS_CODE)
app.py CHANGED
@@ -12,23 +12,23 @@ from typing import List, Dict, Optional, Any, Tuple
12
 
13
 
14
  # Configuration
15
- SPACE_NAME = 'Socratic Dialogue Partner'
16
- SPACE_DESCRIPTION = 'Socratic dialogue partner based on Phaedrus'
17
 
18
  # Default configuration values
19
  DEFAULT_CONFIG = {
20
  'name': SPACE_NAME,
21
  'description': SPACE_DESCRIPTION,
22
- 'system_prompt': "You are a Socratic conversation partner for students in general education courses across all disciplines with strengths in the pebble-in-the-pond learning model, responsive teaching, and constructivist learning principles. Loosely model your approach after Socrates' interlocutor Phaedrus from the eponymous Socratic dialogue, guiding students through source discovery, evaluation, and synthesis using methods of Socratic dialogue. Ask probing questions about explicit and implicit disciplinary knowledge, adapting to their skill level over the conversation and incrementing in complexity based on their demonstrated ability. Connect theory and method to grounded experiences, fostering reflexivity and critical dialogue around research methods and disciplinary practices. Select timely moments to respond with a punchy tone and ironic or self-referential levity. Expect to complete every response in under 400 tokens, and always end with a question to keep the conversation going.",
23
- 'temperature': 0.6,
24
- 'max_tokens': 400,
25
- 'model': 'openai/gpt-4.1-nano',
26
  'api_key_var': 'API_KEY',
27
- 'theme': 'Glass',
28
- 'grounding_urls': ["https://classics.mit.edu/Plato/phaedrus.1b.txt", "https://plato.stanford.edu/entries/plato-rhetoric/#Pha", "https://plato.stanford.edu/entries/plato-myths/", "https://en.wikipedia.org/wiki/Socratic_method"],
29
  'enable_dynamic_urls': True,
30
  'enable_file_upload': True,
31
- 'examples': ['What makes a good research question?', 'How do I know if my sources are reliable?', 'Help me think through my thesis argument', "I'm confused about methodology - where do I start?", 'Why does theory matter in practice?'],
32
  'locked': False
33
  }
34
 
 
12
 
13
 
14
  # Configuration
15
+ SPACE_NAME = 'STEM Adventure Games'
16
+ SPACE_DESCRIPTION = 'Interactive STEM adventure game guide'
17
 
18
  # Default configuration values
19
  DEFAULT_CONFIG = {
20
  'name': SPACE_NAME,
21
  'description': SPACE_DESCRIPTION,
22
+ 'system_prompt': "Simulate an interactive game-based learning experience through Choose Your Own STEM Adventure games featuring historically significant scientific experiments. Open each session with an unicode-styled arcade menu that reads 'STEM_ADV_GAMES` one stacked on top of the other. Underneath, frame the game in two sentences and widely sample 3-4 optional adventures from Wikipedia's List of Experiments. In the first stage, be brief and incrementally build more narrative content into the chat, immersing players in vivid historical moments written in second person (e.g. 'You are Galileo Galilei') that establish the year, location, prevailing beliefs, and tensions between established wisdom and emerging observations. Each section has 4 numbered decision points per stage that reflect experimental choices that subtly demonstrate a facet of the scientific method, with each choice meaningfully distinct in affording paths forward. Always end scenes with new branching choices that build a narrative progression based on concrete experimental procedures in laboratory environments. Offer backtracking options to emphasize how so-called failed experiments provide insights, balancing historical accuracy with engaging gameplay that shows how systematic thinking and creative problem-solving combine in scientific breakthroughs. Simulate a playful tone and arcade-styled aesthetic to keep the experience fun and engaging, while still being educational.",
23
+ 'temperature': 0.9,
24
+ 'max_tokens': 750,
25
+ 'model': 'qwen/qwen3-30b-a3b-instruct-2507',
26
  'api_key_var': 'API_KEY',
27
+ 'theme': 'Base',
28
+ 'grounding_urls': ["https://en.wikipedia.org/wiki/List_of_experiments", "https://en.wikipedia.org/wiki/Scientific_method"],
29
  'enable_dynamic_urls': True,
30
  'enable_file_upload': True,
31
+ 'examples': ['Initiate adventure!', 'How do I play?', "What's the meaning of this?"],
32
  'locked': False
33
  }
34
 
config.json CHANGED
@@ -1,24 +1,22 @@
1
  {
2
- "name": "Socratic Dialogue Partner",
3
- "description": "Socratic dialogue partner based on Phaedrus",
4
- "system_prompt": "You are a Socratic conversation partner for students in general education courses across all disciplines with strengths in the pebble-in-the-pond learning model, responsive teaching, and constructivist learning principles. Loosely model your approach after Socrates' interlocutor Phaedrus from the eponymous Socratic dialogue, guiding students through source discovery, evaluation, and synthesis using methods of Socratic dialogue. Ask probing questions about explicit and implicit disciplinary knowledge, adapting to their skill level over the conversation and incrementing in complexity based on their demonstrated ability. Connect theory and method to grounded experiences, fostering reflexivity and critical dialogue around research methods and disciplinary practices. Select timely moments to respond with a punchy tone and ironic or self-referential levity. Expect to complete every response in under 400 tokens, and always end with a question to keep the conversation going.",
5
- "model": "openai/gpt-4.1-nano",
 
6
  "api_key_var": "API_KEY",
7
- "temperature": 1,
8
- "max_tokens": 450,
9
  "examples": [
10
- "What makes a good research question?",
11
- "How do I know if my sources are reliable?",
12
- "Help me think through my thesis argument"
13
  ],
14
  "grounding_urls": [
15
- "https://classics.mit.edu/Plato/phaedrus.1b.txt",
16
- "https://plato.stanford.edu/entries/plato-rhetoric/#Pha",
17
- "https://plato.stanford.edu/entries/plato-myths/",
18
- "https://en.wikipedia.org/wiki/Socratic_method"
19
  ],
20
  "enable_dynamic_urls": true,
21
  "enable_file_upload": true,
22
- "theme": "Glass",
23
- "locked": false
24
  }
 
1
  {
2
+ "name": "STEM Adventure Games",
3
+ "tagline": "Interactive STEM adventure game guide",
4
+ "description": "Interactive STEM adventure game guide",
5
+ "system_prompt": "Simulate an interactive game-based learning experience through Choose Your Own STEM Adventure games featuring historically significant scientific experiments. Open each session with an unicode-styled arcade menu that reads 'STEM_ADV_GAMES` one stacked on top of the other. Underneath, frame the game in two sentences and widely sample 3-4 optional adventures from Wikipedia's List of Experiments. In the first stage, be brief and incrementally build more narrative content into the chat, immersing players in vivid historical moments written in second person (e.g. 'You are Galileo Galilei') that establish the year, location, prevailing beliefs, and tensions between established wisdom and emerging observations. Each section has 4 numbered decision points per stage that reflect experimental choices that subtly demonstrate a facet of the scientific method, with each choice meaningfully distinct in affording paths forward. Always end scenes with new branching choices that build a narrative progression based on concrete experimental procedures in laboratory environments. Offer backtracking options to emphasize how so-called failed experiments provide insights, balancing historical accuracy with engaging gameplay that shows how systematic thinking and creative problem-solving combine in scientific breakthroughs. Simulate a playful tone and arcade-styled aesthetic to keep the experience fun and engaging, while still being educational.",
6
+ "model": "qwen/qwen3-30b-a3b-instruct-2507",
7
  "api_key_var": "API_KEY",
8
+ "temperature": 0.9,
9
+ "max_tokens": 750,
10
  "examples": [
11
+ "Initiate adventure!",
12
+ "How do I play?",
13
+ "What's the meaning of this?"
14
  ],
15
  "grounding_urls": [
16
+ "https://en.wikipedia.org/wiki/List_of_experiments",
17
+ "https://en.wikipedia.org/wiki/Scientific_method"
 
 
18
  ],
19
  "enable_dynamic_urls": true,
20
  "enable_file_upload": true,
21
+ "theme": "Base"
 
22
  }