Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -82,7 +82,6 @@ def interactWithModel(history, prompt):
|
|
82 |
@torch.no_grad()
|
83 |
def getImageDescription(image):
|
84 |
message = "Generate an ecommerce product description for the image"
|
85 |
-
gr.Info('Starting...' + message)
|
86 |
stop = StopOnTokens()
|
87 |
messages = [{"role": "system", "content": "You are a helpful assistant."}]
|
88 |
|
@@ -130,7 +129,6 @@ def getImageDescription(image):
|
|
130 |
partial_response += new_token
|
131 |
# history[-1][1] = partial_response
|
132 |
# yield history
|
133 |
-
gr.Info('Got:' + partial_response)
|
134 |
return partial_response
|
135 |
|
136 |
def resize_image(image):
|
|
|
82 |
@torch.no_grad()
|
83 |
def getImageDescription(image):
|
84 |
message = "Generate an ecommerce product description for the image"
|
|
|
85 |
stop = StopOnTokens()
|
86 |
messages = [{"role": "system", "content": "You are a helpful assistant."}]
|
87 |
|
|
|
129 |
partial_response += new_token
|
130 |
# history[-1][1] = partial_response
|
131 |
# yield history
|
|
|
132 |
return partial_response
|
133 |
|
134 |
def resize_image(image):
|