Spaces:
Runtime error
Runtime error
Update app.py
Browse filesfixing indentation
app.py
CHANGED
@@ -69,9 +69,9 @@ for i in range (len(models)):
|
|
69 |
try:
|
70 |
globals()[f"tokenizer_{i}"] = AutoTokenizer.from_pretrained(models[i])
|
71 |
globals()[f"model_{i}"] = AutoModelForSequenceClassification.from_pretrained(models[i])
|
72 |
-
|
73 |
except:
|
74 |
-
|
75 |
|
76 |
### Defining metrics
|
77 |
for i in range (len(metrics)):
|
|
|
69 |
try:
|
70 |
globals()[f"tokenizer_{i}"] = AutoTokenizer.from_pretrained(models[i])
|
71 |
globals()[f"model_{i}"] = AutoModelForSequenceClassification.from_pretrained(models[i])
|
72 |
+
st.text("Loaded model "+ str(models[i]))
|
73 |
except:
|
74 |
+
st.text("Sorry, I can't load model "+ str(models[i]))
|
75 |
|
76 |
### Defining metrics
|
77 |
for i in range (len(metrics)):
|