prithivMLmods commited on
Commit
db9acad
·
verified ·
1 Parent(s): dcc5990

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -120,10 +120,10 @@ demo = gr.ChatInterface(
120
  ],
121
  stop_btn=None,
122
  examples=[
123
- ["Write a Python function to reverses a string if it's length is a multiple of 4. def reverse_string(str1): if len(str1) % 4 == 0: return ''.join(reversed(str1)) return str1 print(reverse_string('abcd')) print(reverse_string('python')) "],
124
- ["Rectangle $ABCD$ is the base of pyramid $PABCD$. If $AB = 10$, $BC = 5$, $\overline{PA}\perp \text{plane } ABCD$, and $PA = 8$, then what is the volume of $PABCD$?"],
125
- ["Difference between List comprehension and Lambda in Python lst = [x ** 2 for x in range (1, 11) if x % 2 == 1] print(lst)"],
126
- ["What happens when the sun goes down?"],
127
  ],
128
  cache_examples=False,
129
  type="messages",
 
120
  ],
121
  stop_btn=None,
122
  examples=[
123
+ ["A train travels 60 kilometers per hour. If it travels for 5 hours, how far will it travel in total?"],
124
+ ["Write a Python function to check if a number is prime. def is_prime(num): if num < 2: return False for i in range(2, int(num**0.5) + 1): if num % i == 0: return False return True print(is_prime(11)) print(is_prime(15)"],
125
+ ["What causes rainbows to form? Rainbows form due to the refraction, reflection, and dispersion of light in water droplets, resulting in a spectrum of colors appearing in the sky."],
126
+ ["Rewrite the following sentence in passive voice: 'The dog chased the cat.' Answer: 'The cat was chased by the dog"],
127
  ],
128
  cache_examples=False,
129
  type="messages",