kalpapathiraja commited on
Commit
a7de3c2
·
verified ·
1 Parent(s): a860b3c

Added gemini api to power the app

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -10,13 +10,16 @@ def process(text1):
10
  return response.text
11
 
12
  def happy_tone(text2):
13
- return text2+" with Happy tone"
 
14
 
15
  def sad_tone(text2):
16
- return text2+" with Sad tone"
 
17
 
18
  def excited_tone(text2):
19
- return text2+" with Excited tone"
 
20
 
21
 
22
 
 
10
  return response.text
11
 
12
  def happy_tone(text2):
13
+ response = model.generate_content(text2+" write it in a happy tone")
14
+ return response.text
15
 
16
  def sad_tone(text2):
17
+ response = model.generate_content(text2+" write it in a sad tone")
18
+ return response.text
19
 
20
  def excited_tone(text2):
21
+ response = model.generate_content(text2+" write it in a excited tone")
22
+ return response.text
23
 
24
 
25