ZeroCommand commited on
Commit
d0be156
1 Parent(s): 6314bb5

fix f string

Browse files
Files changed (1) hide show
  1. text_classification_ui_helpers.py +1 -1
text_classification_ui_helpers.py CHANGED
@@ -224,7 +224,7 @@ def align_columns_and_show_prediction(
224
  )
225
 
226
  if isinstance(prediction_response, Exception):
227
- gr.Warning("Inference API loading error: {prediction_response}. Please check your model or Hugging Face token.")
228
  return (
229
  gr.update(visible=False),
230
  gr.update(visible=False),
 
224
  )
225
 
226
  if isinstance(prediction_response, Exception):
227
+ gr.Warning(f"Inference API loading error: {prediction_response}. Please check your model or Hugging Face token.")
228
  return (
229
  gr.update(visible=False),
230
  gr.update(visible=False),