mrSpectrum commited on
Commit
f80715b
·
verified ·
1 Parent(s): 85356ea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import gradio as gr
2
  from utils.bgg import get_game_details, get_hot_games, get_similar_games_v2, search
3
  from utils.wikipedia_tools import search_wiki, summary_wiki, page_wiki, random_wiki
4
- from imdb import search_imdb
5
 
6
 
7
  search_bgg = gr.Interface(
@@ -42,7 +42,13 @@ wiki_summary = gr.Interface(fn=summary_wiki, inputs=["text", "text"], outputs="t
42
  wiki_page = gr.Interface(fn=page_wiki, inputs=["text", "text"], outputs="text", title="Full Page", description="Get full content of a topic")
43
  wiki_random = gr.Interface(fn=random_wiki, inputs=["text"], outputs="text", title="Random Page", description="Get a random Wikipedia article")
44
 
45
- imdb_interface = gr.Interface(fn=search_imdb, inputs="text", outputs="json", title="IMDb Movie Search", description="Get movie info")
 
 
 
 
 
 
46
 
47
  # ----- Combine All Tabs -----
48
  combined_tools = gr.TabbedInterface(
 
1
  import gradio as gr
2
  from utils.bgg import get_game_details, get_hot_games, get_similar_games_v2, search
3
  from utils.wikipedia_tools import search_wiki, summary_wiki, page_wiki, random_wiki
4
+ from utils.imdb_tools import search_imdb
5
 
6
 
7
  search_bgg = gr.Interface(
 
42
  wiki_page = gr.Interface(fn=page_wiki, inputs=["text", "text"], outputs="text", title="Full Page", description="Get full content of a topic")
43
  wiki_random = gr.Interface(fn=random_wiki, inputs=["text"], outputs="text", title="Random Page", description="Get a random Wikipedia article")
44
 
45
+ imdb_interface = gr.Interface(
46
+ fn=search_imdb,
47
+ inputs="text",
48
+ outputs="json",
49
+ title="IMDb Movie Search",
50
+ description="Search IMDb for movie details."
51
+ )
52
 
53
  # ----- Combine All Tabs -----
54
  combined_tools = gr.TabbedInterface(