Stanford-TH commited on
Commit
6af54cd
1 Parent(s): 0308224

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -8,9 +8,7 @@ def classify_movie_genre(description):
8
  # Get predictions using the pipeline
9
  predictions = pipe(description)
10
 
11
- # Format the predictions to match Gradio's output expectations
12
- formatted_predictions = {genre: score for genre, score in predictions}
13
- return formatted_predictions
14
 
15
  # Define the Gradio interface
16
  iface = gr.Interface(
 
8
  # Get predictions using the pipeline
9
  predictions = pipe(description)
10
 
11
+ return predictions
 
 
12
 
13
  # Define the Gradio interface
14
  iface = gr.Interface(