Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -43,7 +43,7 @@ def get_results(prediction, prediction_probs):
|
|
43 |
return pd.DataFrame({
|
44 |
'Topic': prediction,
|
45 |
'Confidence': prediction_probs,
|
46 |
-
})
|
47 |
|
48 |
label_to_theme = {0: 'Computer science', 1: 'Economics', 2: 'Electrical Engineering and Systems Science', 3: 'Math',
|
49 |
4: 'Quantitative biology', 5: 'Quantitative Finance', 6: 'Statistics', 7: 'Physics'}
|
|
|
43 |
return pd.DataFrame({
|
44 |
'Topic': prediction,
|
45 |
'Confidence': prediction_probs,
|
46 |
+
}).style.hide_index()
|
47 |
|
48 |
label_to_theme = {0: 'Computer science', 1: 'Economics', 2: 'Electrical Engineering and Systems Science', 3: 'Math',
|
49 |
4: 'Quantitative biology', 5: 'Quantitative Finance', 6: 'Statistics', 7: 'Physics'}
|