Prof-Reza commited on
Commit
28abf63
·
verified ·
1 Parent(s): d50fc97

Upload 2 files

Browse files
Files changed (2) hide show
  1. README.md +10 -1
  2. app.py +6 -3
README.md CHANGED
@@ -1,6 +1,15 @@
 
 
 
 
 
 
 
 
 
1
  # Course Creator Space
2
 
3
- This private space allows you to plan and generate a full course package from a chat conversation with integrated web research.
4
 
5
  ## Features
6
 
 
1
+ ---
2
+ title: Course Creator
3
+ emoji: 🚀
4
+ license: mit
5
+ sdk: gradio
6
+ app_file: app.py
7
+ pinned: false
8
+ ---
9
+
10
  # Course Creator Space
11
 
12
+ This private Space allows you to plan and generate a full course package from a chat conversation with integrated web research.
13
 
14
  ## Features
15
 
app.py CHANGED
@@ -1,8 +1,11 @@
1
  import os
2
  import gradio as gr
3
- from course_agent.planner import plan_course
4
- from course_agent.generators import generate_course_zip
5
- from course_agent.searcher import run_web_search
 
 
 
6
 
7
  # store chat messages and sources globally
8
  chat_history = []
 
1
  import os
2
  import gradio as gr
3
+ # Adjust imports to work when modules are in the repository root.
4
+ # When deploying on Hugging Face, the helper modules live at the top level,
5
+ # so import them directly instead of via a package.
6
+ from planner import plan_course
7
+ from generators import generate_course_zip
8
+ from searcher import run_web_search
9
 
10
  # store chat messages and sources globally
11
  chat_history = []