Update app.py
Browse files
app.py
CHANGED
|
@@ -118,7 +118,7 @@ def generate_audio(prompt):
|
|
| 118 |
# Function to call Clarifai API
|
| 119 |
def get_image_concepts(created_image):
|
| 120 |
channel = ClarifaiChannel.get_grpc_channel()
|
| 121 |
-
stub = service_pb2_grpc.V2Stub(
|
| 122 |
|
| 123 |
buffer = BytesIO()
|
| 124 |
created_image.save(buffer, format='PNG')
|
|
|
|
| 118 |
# Function to call Clarifai API
|
| 119 |
def get_image_concepts(created_image):
|
| 120 |
channel = ClarifaiChannel.get_grpc_channel()
|
| 121 |
+
stub = service_pb2_grpc.V2Stub(channel)
|
| 122 |
|
| 123 |
buffer = BytesIO()
|
| 124 |
created_image.save(buffer, format='PNG')
|