Upload 4 files
Browse files- README.md +5 -5
- app.py +9 -9
- config.json +14 -12
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 @@ Interactive STEM adventure game guide
|
|
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: Course Assistant Example
|
3 |
emoji: 💬
|
4 |
colorFrom: blue
|
5 |
colorTo: green
|
|
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: mit
|
11 |
+
short_description: Python support for cultural analytics students
|
12 |
---
|
13 |
|
14 |
+
# Course Assistant Example
|
15 |
|
16 |
+
Python support for cultural analytics students
|
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**: openai/gpt-oss-120b
|
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': 'Default',
|
28 |
-
'grounding_urls': ["https://
|
29 |
'enable_dynamic_urls': True,
|
30 |
'enable_file_upload': True,
|
31 |
-
'examples': ['
|
32 |
'language': 'English',
|
33 |
'locked': False
|
34 |
}
|
@@ -763,7 +763,7 @@ def create_interface():
|
|
763 |
"anthropic/claude-3.5-haiku",
|
764 |
# OpenAI models
|
765 |
"openai/gpt-4o-mini-search-preview",
|
766 |
-
"openai/gpt-
|
767 |
# MistralAI models
|
768 |
"mistralai/mistral-medium-3",
|
769 |
# DeepSeek models
|
|
|
12 |
|
13 |
|
14 |
# Configuration
|
15 |
+
SPACE_NAME = 'Course Assistant Example'
|
16 |
+
SPACE_DESCRIPTION = 'Python support for cultural analytics students'
|
17 |
|
18 |
# Default configuration values
|
19 |
DEFAULT_CONFIG = {
|
20 |
'name': SPACE_NAME,
|
21 |
'description': SPACE_DESCRIPTION,
|
22 |
+
'system_prompt': "You're a Python guide for CCNY's CSC 10800 where September covers foundations (command line, Jupyter, script anatomy), October builds programming basics (data types through functions) with Activities 1-2, and November-December advances to pandas, network analysis, and data collection with Activities 3-5, culminating in a Social Coding Portfolio. Support diverse learners by first assessing their comfort level and adapt your explanations accordingly. Always provide multiple entry points to concepts: start with the simplest working example that accomplishes the goal, then show incremental improvements and allow students to work and learn at their comfort level while, giving advanced learners paths to explore new concept and expand their programming repertoire. Expect to complete all responses in under 1000 tokens.",
|
23 |
+
'temperature': 0.5,
|
24 |
+
'max_tokens': 1000,
|
25 |
+
'model': 'openai/gpt-oss-120b',
|
26 |
'api_key_var': 'API_KEY',
|
27 |
'theme': 'Default',
|
28 |
+
'grounding_urls': ["https://zmuhls.github.io/ccny-data-science/syllabus/", "https://zmuhls.github.io/ccny-data-science/schedule/"],
|
29 |
'enable_dynamic_urls': True,
|
30 |
'enable_file_upload': True,
|
31 |
+
'examples': ['How do I set up a interactive development environment?', 'Where can I find the course schedule?', 'When is the social coding portfolio due?', 'How do I push a commit to GitHub?', "I'm confused on how to use Jupyter notebooks"],
|
32 |
'language': 'English',
|
33 |
'locked': False
|
34 |
}
|
|
|
763 |
"anthropic/claude-3.5-haiku",
|
764 |
# OpenAI models
|
765 |
"openai/gpt-4o-mini-search-preview",
|
766 |
+
"openai/gpt-oss-120b",
|
767 |
# MistralAI models
|
768 |
"mistralai/mistral-medium-3",
|
769 |
# DeepSeek models
|
config.json
CHANGED
@@ -1,21 +1,23 @@
|
|
1 |
{
|
2 |
-
"name": "
|
3 |
-
"tagline": "
|
4 |
-
"description": "
|
5 |
-
"system_prompt": "
|
6 |
-
"model": "
|
7 |
"language": "English",
|
8 |
"api_key_var": "API_KEY",
|
9 |
-
"temperature": 0.
|
10 |
-
"max_tokens":
|
11 |
"examples": [
|
12 |
-
"
|
13 |
-
"
|
14 |
-
"
|
|
|
|
|
15 |
],
|
16 |
"grounding_urls": [
|
17 |
-
"https://
|
18 |
-
"https://
|
19 |
],
|
20 |
"enable_dynamic_urls": true,
|
21 |
"enable_file_upload": true,
|
|
|
1 |
{
|
2 |
+
"name": "Course Assistant Example",
|
3 |
+
"tagline": "Python support for cultural analytics students",
|
4 |
+
"description": "Python support for cultural analytics students",
|
5 |
+
"system_prompt": "You're a Python guide for CCNY's CSC 10800 where September covers foundations (command line, Jupyter, script anatomy), October builds programming basics (data types through functions) with Activities 1-2, and November-December advances to pandas, network analysis, and data collection with Activities 3-5, culminating in a Social Coding Portfolio. Support diverse learners by first assessing their comfort level and adapt your explanations accordingly. Always provide multiple entry points to concepts: start with the simplest working example that accomplishes the goal, then show incremental improvements and allow students to work and learn at their comfort level while, giving advanced learners paths to explore new concept and expand their programming repertoire. Expect to complete all responses in under 1000 tokens.",
|
6 |
+
"model": "openai/gpt-oss-120b",
|
7 |
"language": "English",
|
8 |
"api_key_var": "API_KEY",
|
9 |
+
"temperature": 0.5,
|
10 |
+
"max_tokens": 1000,
|
11 |
"examples": [
|
12 |
+
"How do I set up a interactive development environment?",
|
13 |
+
"Where can I find the course schedule?",
|
14 |
+
"When is the social coding portfolio due?",
|
15 |
+
"How do I push a commit to GitHub?",
|
16 |
+
"I'm confused on how to use Jupyter notebooks"
|
17 |
],
|
18 |
"grounding_urls": [
|
19 |
+
"https://zmuhls.github.io/ccny-data-science/syllabus/",
|
20 |
+
"https://zmuhls.github.io/ccny-data-science/schedule/"
|
21 |
],
|
22 |
"enable_dynamic_urls": true,
|
23 |
"enable_file_upload": true,
|