Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -50,11 +50,11 @@ def format_prompt(message, history):
|
|
50 |
def getProductTitle(history, image):
|
51 |
product_description=getImageDescription(image)
|
52 |
prompt="Our product description is as follows: " + product_description + ". Please write a product title options for it."
|
53 |
-
yield interactWithModel(history,
|
54 |
|
55 |
def getProductDescription(history):
|
56 |
prompt="Please also write an SEO friendly description for it describing its value to its users."
|
57 |
-
yield interactWithModel(history,
|
58 |
|
59 |
|
60 |
def interactWithModel(history, prompt):
|
|
|
50 |
def getProductTitle(history, image):
|
51 |
product_description=getImageDescription(image)
|
52 |
prompt="Our product description is as follows: " + product_description + ". Please write a product title options for it."
|
53 |
+
yield interactWithModel(history, prompt)
|
54 |
|
55 |
def getProductDescription(history):
|
56 |
prompt="Please also write an SEO friendly description for it describing its value to its users."
|
57 |
+
yield interactWithModel(history, prompt)
|
58 |
|
59 |
|
60 |
def interactWithModel(history, prompt):
|