Spaces:
Runtime error
Runtime error
Upload 2 files
Browse files
README.md
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# Course Creator Space
|
| 2 |
|
| 3 |
-
This private
|
| 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 |
-
|
| 4 |
-
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
| 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 = []
|