Spaces:
Runtime error
Runtime error
Update README.md
Browse files
README.md
CHANGED
|
@@ -11,3 +11,60 @@ license: mit
|
|
| 11 |
---
|
| 12 |
|
| 13 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
---
|
| 12 |
|
| 13 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
| 14 |
+
Oral Coach 🎤✨ powered by ZeroGPU ⚡ϞϞ(๑⚈ ․̫ ⚈๑)∩ ⚡ and Mixtral 🎭🎓
|
| 15 |
+
The Oral Coach is an AI-powered conversational coach designed to guide students through their oral responses. It is built using Gradio, HuggingFace's InferenceClient, and edge_tts for text-to-speech conversion. The Oral Coach is participating in the Hugging Face ZeroGPU initiative.
|
| 16 |
+
Project Objectives
|
| 17 |
+
|
| 18 |
+
Enhance students' critical thinking when structuring their responses to oral prompts.
|
| 19 |
+
Provide personalized feedback to students.
|
| 20 |
+
Improve students' structured response techniques for oral communication.
|
| 21 |
+
|
| 22 |
+
Features
|
| 23 |
+
|
| 24 |
+
Student information input (class and index number)
|
| 25 |
+
User acceptance policy checkbox
|
| 26 |
+
Question selection
|
| 27 |
+
Thinking frame selection
|
| 28 |
+
Feedback level selection
|
| 29 |
+
Audio recording and transcription
|
| 30 |
+
AI-generated personalized feedback
|
| 31 |
+
Text-to-speech feedback playback
|
| 32 |
+
Teacher's dashboard (not shown in the provided code)
|
| 33 |
+
|
| 34 |
+
Getting Started
|
| 35 |
+
The Oral Coach app was piloted in 2024 by over 1000+ students in 5 S4 Cluster Schools. This repository contains the source code for the Oral Coach app. You can run the app locally or deploy it to Render.com.
|
| 36 |
+
To get started with the Oral Coach, simply clone the Hugging Space repository as the app is hosted on Hugging Face:
|
| 37 |
+
Copy codegit clone https://huggingface.co/spaces/your-username/oral-coach
|
| 38 |
+
Usage
|
| 39 |
+
|
| 40 |
+
Access the application through the provided URL.
|
| 41 |
+
Enter the student information, agree to the user acceptance policy, and click "Submit Info".
|
| 42 |
+
Choose a question, thinking frame, and feedback level.
|
| 43 |
+
Record the oral response using the microphone.
|
| 44 |
+
Click "Submit Oral Response" to generate personalized feedback.
|
| 45 |
+
Review the feedback in the chatbot and listen to the audio playback.
|
| 46 |
+
|
| 47 |
+
Code Structure
|
| 48 |
+
|
| 49 |
+
app.py: The main application file containing the Gradio interface and prediction logic.
|
| 50 |
+
thinkingframes.py: Contains the question prompts, thinking frames, and feedback generation prompts.
|
| 51 |
+
styles.py: Defines the theme and styling for the Gradio interface.
|
| 52 |
+
utils.py: Utility functions for displaying images and collecting student information.
|
| 53 |
+
database_functions.py: Functions for interacting with the database (not shown in the provided code).
|
| 54 |
+
tab_teachers_dashboard.py: Functions for creating the teacher's dashboard tab (not shown in the provided code).
|
| 55 |
+
config.py: Configuration variables (not shown in the provided code).
|
| 56 |
+
|
| 57 |
+
ZeroGPU Integration
|
| 58 |
+
The Oral Coach leverages Hugging Face's ZeroGPU initiative to enable GPU acceleration for inference. The @spaces.GPU(duration=120) decorator is used to allocate GPU resources for the model function, which performs the inference using the "mistralai/Mixtral-8x7B-Instruct-v0.1" model.
|
| 59 |
+
The Oral Coach utilizes the Mixtral model, a powerful language model specifically designed for educational applications. Mixtral provides the underlying intelligence for generating personalized feedback and guiding students through their oral responses.
|
| 60 |
+
Contributing
|
| 61 |
+
Contributions are welcome! If you find any issues or have suggestions for improvements, please create an issue or submit a pull request.
|
| 62 |
+
License
|
| 63 |
+
This project is licensed under the MIT License.
|
| 64 |
+
Acknowledgements
|
| 65 |
+
|
| 66 |
+
Hugging Face for providing the InferenceClient and ZeroGPU initiative.
|
| 67 |
+
Gradio for the user interface library.
|
| 68 |
+
edge_tts for text-to-speech conversion.
|
| 69 |
+
|
| 70 |
+
Feel free to customize and expand upon this README template based on your specific Oral Coach application and requirements.
|