mboth commited on
Commit
a6249aa
1 Parent(s): ca86bf8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -148,6 +148,8 @@ def predict(description, name):
148
  datenpunkt = klassifikation_datenpunkte_großes_modell(sequences = datapoint, hypothesis_template = hypothese, candidate_labels = label_pelletkessel)
149
  score_dp = round((datenpunkt['scores'][0] * 100), 2)
150
  datenpunkt_string = 'Der Datenpunkt lautet: ' + str(datenpunkt['labels'][0]) + ' mit einem Score von: '+ str(score_dp) + ' %'
 
 
151
 
152
  elif klasse[0]['label'] == 'Beziehen':
153
  datenpunkt = klassifikation_datenpunkte_großes_modell(sequences = datapoint, hypothesis_template = hypothese, candidate_labels = label_beziehen)
 
148
  datenpunkt = klassifikation_datenpunkte_großes_modell(sequences = datapoint, hypothesis_template = hypothese, candidate_labels = label_pelletkessel)
149
  score_dp = round((datenpunkt['scores'][0] * 100), 2)
150
  datenpunkt_string = 'Der Datenpunkt lautet: ' + str(datenpunkt['labels'][0]) + ' mit einem Score von: '+ str(score_dp) + ' %'
151
+ elif klasse_komponente[0]['label'] == 'WaermeversorgerAllgemein':
152
+ datenpunkt_string = 'Noch nicht ausgeprägt'
153
 
154
  elif klasse[0]['label'] == 'Beziehen':
155
  datenpunkt = klassifikation_datenpunkte_großes_modell(sequences = datapoint, hypothesis_template = hypothese, candidate_labels = label_beziehen)