schoginitoys commited on
Commit
3629b3d
1 Parent(s): 9c85d46
Files changed (3) hide show
  1. __pycache__/examples.cpython-311.pyc +0 -0
  2. app.py +5 -9
  3. examples.py +12 -0
__pycache__/examples.cpython-311.pyc CHANGED
Binary files a/__pycache__/examples.cpython-311.pyc and b/__pycache__/examples.cpython-311.pyc differ
 
app.py CHANGED
@@ -86,15 +86,17 @@ def greet(name):
86
  try:
87
  tpl=eval("examples." + name)
88
  print("examples." + name)
 
89
  except:
90
- tpl=examples.PROJECT_TEMPLATE
91
  print("THERE")
 
92
 
93
 
94
 
95
 
96
  # return "\n```python\n" + "\n\nimport schoginitoys\n\nprint(\"abcd\")\n" + "\n\n```"
97
- return "```python\n" + tpl + "\n```\n"
98
 
99
 
100
  # iface = gr.Interface(fn=greet, inputs="text", outputs="text")
@@ -257,13 +259,7 @@ demo = gr.Interface(
257
  "L201",
258
  "L202",
259
  "L203",
260
- "L204",
261
- "python script to print 10 numbers below 20",
262
- "python script to print a random greeting message",
263
- "python script to show a traffic signal use the LEDs \n connected to GP12 Red, GP13 Yellow, GP14 Green.",
264
- "python script to show animated moving single led dot through the outer periphery of the 32 by 8 display leds.",
265
- "python script to print a random greeting message",
266
- "python script to print a random greeting message",
267
  ],
268
  # theme=gr.themes.Soft(),
269
  theme=gr.themes.Default(),
 
86
  try:
87
  tpl=eval("examples." + name)
88
  print("examples." + name)
89
+ msg = "```python\n" + tpl + "\n```\n"
90
  except:
91
+ tpl=examples.THANKS #PROJECT_TEMPLATE
92
  print("THERE")
93
+ msg = tpl
94
 
95
 
96
 
97
 
98
  # return "\n```python\n" + "\n\nimport schoginitoys\n\nprint(\"abcd\")\n" + "\n\n```"
99
+ return msg
100
 
101
 
102
  # iface = gr.Interface(fn=greet, inputs="text", outputs="text")
 
259
  "L201",
260
  "L202",
261
  "L203",
262
+ "L204",
 
 
 
 
 
 
263
  ],
264
  # theme=gr.themes.Soft(),
265
  theme=gr.themes.Default(),
examples.py CHANGED
@@ -1,4 +1,16 @@
1
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  PROJECT_TEMPLATE = """from schoginitoys import *
3
 
4
  # EDIT THE LINES BELOW
 
1
 
2
+ THANKS = """
3
+
4
+ # THANKS FOR YOUR QUERY
5
+
6
+ ### OUR TEAM WILL
7
+
8
+ ### VALIDATE THIS AND GET BACK TO YOU IN 24 HOURS.
9
+
10
+ ## SCHOGINI TOYS TECH TEAM!
11
+
12
+ """
13
+
14
  PROJECT_TEMPLATE = """from schoginitoys import *
15
 
16
  # EDIT THE LINES BELOW