Spaces:
Running
Running
Upload 4 files
Browse files- README.md +5 -5
- app.py +9 -9
- config.json +13 -15
README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 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:
|
| 12 |
---
|
| 13 |
|
| 14 |
-
#
|
| 15 |
|
| 16 |
-
|
| 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**:
|
| 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 = '
|
| 16 |
-
SPACE_DESCRIPTION = '
|
| 17 |
|
| 18 |
# Default configuration values
|
| 19 |
DEFAULT_CONFIG = {
|
| 20 |
'name': SPACE_NAME,
|
| 21 |
'description': SPACE_DESCRIPTION,
|
| 22 |
-
'system_prompt': "
|
| 23 |
-
'temperature': 0.
|
| 24 |
-
'max_tokens':
|
| 25 |
-
'model': '
|
| 26 |
'api_key_var': 'API_KEY',
|
| 27 |
-
'theme': '
|
| 28 |
-
'grounding_urls': ["https://
|
| 29 |
'enable_dynamic_urls': True,
|
| 30 |
'enable_file_upload': True,
|
| 31 |
-
'examples': ['
|
| 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": "
|
| 3 |
-
"
|
| 4 |
-
"
|
| 5 |
-
"
|
|
|
|
| 6 |
"api_key_var": "API_KEY",
|
| 7 |
-
"temperature":
|
| 8 |
-
"max_tokens":
|
| 9 |
"examples": [
|
| 10 |
-
"
|
| 11 |
-
"How do I
|
| 12 |
-
"
|
| 13 |
],
|
| 14 |
"grounding_urls": [
|
| 15 |
-
"https://
|
| 16 |
-
"https://
|
| 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": "
|
| 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 |
}
|