shivrajkarewar commited on
Commit
e4806a3
Β·
verified Β·
1 Parent(s): 468399d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +47 -0
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
+ ![Demo](https://huggingface.co/spaces/shivrajkarewar/Python_Tutor_Bot/raw/main/screenshot.png) *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