Spaces:
Runtime error
Runtime error
Added gemini api to power the app
Browse files
app.py
CHANGED
@@ -10,13 +10,16 @@ def process(text1):
|
|
10 |
return response.text
|
11 |
|
12 |
def happy_tone(text2):
|
13 |
-
|
|
|
14 |
|
15 |
def sad_tone(text2):
|
16 |
-
|
|
|
17 |
|
18 |
def excited_tone(text2):
|
19 |
-
|
|
|
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 |
|