Spaces:
Running
Running
Commit
·
d13041b
1
Parent(s):
caa781d
fix: add api version to kafka
Browse files
public-prediction/kafka_consumer.py
CHANGED
@@ -62,6 +62,7 @@ def consume_messages():
|
|
62 |
auto_offset_reset='earliest',
|
63 |
client_id="ai-detector-1",
|
64 |
group_id="ai-detector",
|
|
|
65 |
)
|
66 |
|
67 |
print("Successfully connected to Kafka at", os.environ.get("KAFKA_IP"))
|
|
|
62 |
auto_offset_reset='earliest',
|
63 |
client_id="ai-detector-1",
|
64 |
group_id="ai-detector",
|
65 |
+
api_version=(0, 10, 2)
|
66 |
)
|
67 |
|
68 |
print("Successfully connected to Kafka at", os.environ.get("KAFKA_IP"))
|