joelazo commited on
Commit
49d9ad8
·
1 Parent(s): 57058ca

Adding the HF deplyment configuration.

Browse files
Files changed (5) hide show
  1. .github/workflows/update_space.yml +28 -0
  2. .gitignore +43 -0
  3. README.md +6 -0
  4. app.py +9 -0
  5. course_manager.py +2 -1
.github/workflows/update_space.yml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Run Python script
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+
8
+ jobs:
9
+ build:
10
+ runs-on: ubuntu-latest
11
+
12
+ steps:
13
+ - name: Checkout
14
+ uses: actions/checkout@v2
15
+
16
+ - name: Set up Python
17
+ uses: actions/setup-python@v2
18
+ with:
19
+ python-version: '3.9'
20
+
21
+ - name: Install Gradio
22
+ run: python -m pip install gradio
23
+
24
+ - name: Log in to Hugging Face
25
+ run: python -c 'import huggingface_hub; huggingface_hub.login(token="${{ secrets.hf_token }}")'
26
+
27
+ - name: Deploy to Spaces
28
+ run: gradio deploy
.gitignore ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+ *.so
6
+ .Python
7
+
8
+ # Virtual environments
9
+ .venv/
10
+ venv/
11
+ ENV/
12
+ env/
13
+
14
+ # Environment variables
15
+ .env
16
+ .env.local
17
+
18
+ # IDE
19
+ .vscode/
20
+ .idea/
21
+ *.swp
22
+ *.swo
23
+ *~
24
+
25
+ # OS
26
+ .DS_Store
27
+ Thumbs.db
28
+
29
+ # Jupyter
30
+ .ipynb_checkpoints/
31
+
32
+ # Distribution / packaging
33
+ dist/
34
+ build/
35
+ *.egg-info/
36
+
37
+ # Testing
38
+ .pytest_cache/
39
+ .coverage
40
+ htmlcov/
41
+
42
+ # UV
43
+ .uv/
README.md CHANGED
@@ -1,3 +1,9 @@
 
 
 
 
 
 
1
  # Instructor Assistant
2
 
3
  An AI-powered multi-agent system that helps instructors create comprehensive course content including lesson plans, curriculum outlines, practice exercises, and quality assurance. The system uses OpenAI's Agent Framework to orchestrate specialized agents that collaborate to produce complete, well-structured course materials.
 
1
+ ---
2
+ title: instructor_assistant
3
+ app_file: course_manager.py
4
+ sdk: gradio
5
+ sdk_version: 5.49.1
6
+ ---
7
  # Instructor Assistant
8
 
9
  An AI-powered multi-agent system that helps instructors create comprehensive course content including lesson plans, curriculum outlines, practice exercises, and quality assurance. The system uses OpenAI's Agent Framework to orchestrate specialized agents that collaborate to produce complete, well-structured course materials.
app.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ Hugging Face Spaces entry point for the Course Instructor Assistant.
3
+ This file is used by Hugging Face Spaces to launch the application.
4
+ """
5
+
6
+ from course_manager import ui
7
+
8
+ if __name__ == "__main__":
9
+ ui.launch()
course_manager.py CHANGED
@@ -46,4 +46,5 @@ with gr.Blocks(theme=gr.themes.Glass(primary_hue="fuchsia")) as ui:
46
  clear_button.click(fn=clear_fields, outputs=[query_textbox, logs])
47
  query_textbox.change(fn=update_clear_button, inputs=query_textbox, outputs=clear_button)
48
 
49
- ui.launch(share=True, inbrowser=True)
 
 
46
  clear_button.click(fn=clear_fields, outputs=[query_textbox, logs])
47
  query_textbox.change(fn=update_clear_button, inputs=query_textbox, outputs=clear_button)
48
 
49
+ if __name__ == "__main__":
50
+ ui.launch(share=True, inbrowser=True)