Mustafaansari commited on
Commit
c7ea0bb
1 Parent(s): 74c189b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -11,17 +11,16 @@ def recommend(movie_name):
11
  )
12
  data_list = response_json['data']
13
  df = pd.DataFrame(data_list)
14
- return df.to_dict(orient='records')
15
 
16
  # Add an example for the UI
17
  examples = [
18
  ["The Dark Knight"],
19
  ["Inception"],
20
- ["Interstellar"],
21
- ["Aliens vs Predator: Requiem"]
22
  ]
23
 
24
- gr.Interface(fn=recommend, inputs="text", outputs="json", title="Hollywood Movie Recommendation System",
25
  description="Enter a Hollywood movie name, and this system will recommend similar movies based on your input.",
26
  examples=examples # Add examples to the UI
27
  ).launch()
 
11
  )
12
  data_list = response_json['data']
13
  df = pd.DataFrame(data_list)
14
+ return df
15
 
16
  # Add an example for the UI
17
  examples = [
18
  ["The Dark Knight"],
19
  ["Inception"],
20
+ ["Interstellar"]
 
21
  ]
22
 
23
+ gr.Interface(fn=recommend, inputs="text", outputs=gr.DataFrame(), title="Hollywood Movie Recommendation System",
24
  description="Enter a Hollywood movie name, and this system will recommend similar movies based on your input.",
25
  examples=examples # Add examples to the UI
26
  ).launch()