hgdgng commited on
Commit
b9bfc9e
1 Parent(s): 2213368

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -0
app.py ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import os
3
+ from src.search import perform_search
4
+
5
+ def search_interface(query):
6
+ return perform_search(query)
7
+
8
+ # Create Gradio interface
9
+ interface = gr.Interface(
10
+ fn=search_interface,
11
+ inputs=gr.Textbox(label="Enter your search query", lines=2),
12
+ outputs=gr.Textbox(label="Answer"),
13
+ title="Tavily Search Assistant",
14
+ description="Enter any question to get an AI-powered search response"
15
+ )
16
+
17
+ if __name__ == "__main__":
18
+ interface.launch()