Spaces:
Runtime error
Runtime error
scifuentes
commited on
Commit
·
6ef740f
1
Parent(s):
046c1e6
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import gradio as gr
|
|
3 |
import shap
|
4 |
from transformers import pipeline
|
5 |
from transformers import DistilBertTokenizer, DistilBertForSequenceClassification
|
6 |
-
|
7 |
import sys
|
8 |
import os
|
9 |
import pandas as pd
|
@@ -17,7 +17,7 @@ consumer = Consumer(
|
|
17 |
'security.protocol':'SASL_SSL',
|
18 |
'sasl.mechanisms':'PLAIN',
|
19 |
'sasl.username':'AIZHFU6TZHAQC5E3',
|
20 |
-
'sasl.password':confluent_ingreso,
|
21 |
'auto.offset.reset': 'earliest',
|
22 |
'enable.auto.commit': True })
|
23 |
|
|
|
3 |
import shap
|
4 |
from transformers import pipeline
|
5 |
from transformers import DistilBertTokenizer, DistilBertForSequenceClassification
|
6 |
+
import streamlit as st
|
7 |
import sys
|
8 |
import os
|
9 |
import pandas as pd
|
|
|
17 |
'security.protocol':'SASL_SSL',
|
18 |
'sasl.mechanisms':'PLAIN',
|
19 |
'sasl.username':'AIZHFU6TZHAQC5E3',
|
20 |
+
'sasl.password':st.secrets["confluent_ingreso"],
|
21 |
'auto.offset.reset': 'earliest',
|
22 |
'enable.auto.commit': True })
|
23 |
|