Spaces:
Runtime error
Runtime error
Commit
·
6702c8a
1
Parent(s):
2951498
Update app.py
Browse files
app.py
CHANGED
@@ -29,11 +29,11 @@ def predict(image):
|
|
29 |
|
30 |
|
31 |
def creative_caption(text):
|
32 |
-
return co_client.generate(prompt=f"Write some trendy instagram captions for the following prompt - {text}").text
|
33 |
|
34 |
|
35 |
def caption_hashtags(text):
|
36 |
-
return co_client.generate(prompt=f"Write some trendy instagram hashtags for the following prompt - {text}").text
|
37 |
|
38 |
|
39 |
input_upload = gr.Image(label="Upload any Image")
|
|
|
29 |
|
30 |
|
31 |
def creative_caption(text):
|
32 |
+
return co_client.generate(prompt=f"Write some trendy instagram captions for the following prompt - {text}").generations[0].text
|
33 |
|
34 |
|
35 |
def caption_hashtags(text):
|
36 |
+
return co_client.generate(prompt=f"Write some trendy instagram hashtags for the following prompt - {text}").generations[0].text
|
37 |
|
38 |
|
39 |
input_upload = gr.Image(label="Upload any Image")
|