Battingchart300 commited on
Commit
7a01ba9
·
verified ·
1 Parent(s): f150b1e

Add @spaces.GPU so the demo runs on ZeroGPU hardware

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -10,6 +10,7 @@ from pathlib import Path
10
 
11
  import gradio as gr
12
  import pandas as pd
 
13
 
14
 
15
  def clean_text(value):
@@ -70,6 +71,7 @@ def clean(df: pd.DataFrame) -> tuple[pd.DataFrame, dict]:
70
  return df, report
71
 
72
 
 
73
  def clean_file(upload):
74
  if upload is None:
75
  return None, "Upload a CSV or Excel file first."
 
10
 
11
  import gradio as gr
12
  import pandas as pd
13
+ import spaces
14
 
15
 
16
  def clean_text(value):
 
71
  return df, report
72
 
73
 
74
+ @spaces.GPU
75
  def clean_file(upload):
76
  if upload is None:
77
  return None, "Upload a CSV or Excel file first."