RafaelAgreda commited on
Commit
3ef9fa5
·
verified ·
1 Parent(s): da5b7b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -10
app.py CHANGED
@@ -42,16 +42,6 @@ def get_audiobook_recommendation(category: Optional[str] = None) -> AudiobookRec
42
  all_books = [book for books in audiobook_catalog.values() for book in books]
43
  return random.choice(all_books)
44
 
45
- # Test with Gradio
46
- import gradio as gr
47
-
48
- interface = gr.Interface(
49
- fn=get_audiobook_recommendation,
50
- inputs=gr.Textbox(label="Category (optional)"),
51
- outputs=gr.JSON(label="Recommendation"),
52
- title="Audiobook Recommender"
53
- )
54
-
55
  @tool
56
  def get_current_time_in_timezone(timezone: str) -> str:
57
  """A tool that fetches the current local time in a specified timezone.
 
42
  all_books = [book for books in audiobook_catalog.values() for book in books]
43
  return random.choice(all_books)
44
 
 
 
 
 
 
 
 
 
 
 
45
  @tool
46
  def get_current_time_in_timezone(timezone: str) -> str:
47
  """A tool that fetches the current local time in a specified timezone.