Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,12 +30,13 @@ def respond(
|
|
| 30 |
|
| 31 |
# Developer Mode activation only after code written
|
| 32 |
if "Rom98" in message:
|
|
|
|
|
|
|
|
|
|
| 33 |
if not code_written:
|
| 34 |
yield "⚠️ يجب أن تكتب الكود أولاً قبل تفعيل Developer Mode!"
|
| 35 |
return
|
| 36 |
-
|
| 37 |
-
yield "✅ Developer Mode activated! You can now tell me to change my code and I will update it for you i am here to here you minato 56."
|
| 38 |
-
return
|
| 39 |
|
| 40 |
# Add welcome message if history is empty
|
| 41 |
if not history:
|
|
|
|
| 30 |
|
| 31 |
# Developer Mode activation only after code written
|
| 32 |
if "Rom98" in message:
|
| 33 |
+
dev_mode = True
|
| 34 |
+
yield "✅ Developer Mode activated! You can now tell me to change my code and I will update it for you i am here to here you minato 56."
|
| 35 |
+
return
|
| 36 |
if not code_written:
|
| 37 |
yield "⚠️ يجب أن تكتب الكود أولاً قبل تفعيل Developer Mode!"
|
| 38 |
return
|
| 39 |
+
|
|
|
|
|
|
|
| 40 |
|
| 41 |
# Add welcome message if history is empty
|
| 42 |
if not history:
|