Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
@@ -10,5 +10,52 @@ pinned: false
|
|
10 |
license: mit
|
11 |
short_description: Python_Tutor_Bot
|
12 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
|
14 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
10 |
license: mit
|
11 |
short_description: Python_Tutor_Bot
|
12 |
---
|
13 |
+
# Python Tutor Bot π€
|
14 |
+
|
15 |
+
An interactive Python tutoring assistant hosted on Hugging Face Spaces. This bot helps you learn Python concepts, debug code, and get explanations for programming questions using AI-powered text generation.
|
16 |
+
|
17 |
+
 *Replace with actual screenshot URL*
|
18 |
+
|
19 |
+
## Features β¨
|
20 |
+
- Get explanations for Python concepts
|
21 |
+
- Debug and correct Python code snippets
|
22 |
+
- Receive code examples for specific programming tasks
|
23 |
+
- Interactive chat-style interface
|
24 |
+
- Powered by GPT-2 text generation model
|
25 |
+
|
26 |
+
## How to Use π
|
27 |
+
1. Visit the [live Space](https://huggingface.co/spaces/shivrajkarewar/Python_Tutor_Bot)
|
28 |
+
2. Type your question in the text input. Examples:
|
29 |
+
- "Explain list comprehensions"
|
30 |
+
- "Why am I getting a IndexError here?"
|
31 |
+
- "Show me how to read a CSV file in Python"
|
32 |
+
3. Press Enter or click Submit
|
33 |
+
4. Get an AI-generated explanation with code examples
|
34 |
+
|
35 |
+
## Examples π‘
|
36 |
+
|
37 |
+
**Input:**
|
38 |
+
```python
|
39 |
+
How to reverse a string in Python?
|
40 |
+
|
41 |
+
|
42 |
+
**Output:**
|
43 |
+
You can reverse a string using slicing:
|
44 |
+
|
45 |
+
text = "hello world"
|
46 |
+
reversed_text = text[::-1]
|
47 |
+
print(reversed_text) # Output: "dlrow olleh"
|
48 |
+
|
49 |
+
|
50 |
+
Tech Stack π οΈ
|
51 |
+
π Built with Gradio
|
52 |
+
|
53 |
+
π€ Hosted on Hugging Face Spaces
|
54 |
+
|
55 |
+
π§ Backed by transformers pipeline with GPT-2 model
|
56 |
+
|
57 |
+
π Python 3.8+
|
58 |
+
|
59 |
+
Note: This bot uses AI-generated content. Always verify critical programming concepts through official documentation.
|
60 |
|
61 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|