Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,15 +1,18 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from geminisearch import webSearch
|
| 3 |
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
if __name__ == "__main__":
|
| 15 |
-
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from geminisearch import webSearch
|
| 3 |
|
| 4 |
+
with gr.Blocks(
|
| 5 |
+
theme = "upsatwal/mlsc_tiet"
|
| 6 |
+
) as app:
|
| 7 |
+
gr.Markdown("<center><h1><strong>Gemini Web Search</strong></h1></center>")
|
| 8 |
+
gr.Markdown("<center><h3><strong>Search the web for information</strong></h3></center>")
|
| 9 |
+
with gr.Column():
|
| 10 |
+
gr.Markdown("<strong>Query Response</strong>")
|
| 11 |
+
output = gr.Markdown()
|
| 12 |
+
input = gr.Textbox(label="Query Field",placeholder="Type in your search query")
|
| 13 |
+
btn = gr.Button("Google Search")
|
| 14 |
+
|
| 15 |
+
btn.click(webSearch, inputs=[input], outputs=output)
|
| 16 |
|
| 17 |
if __name__ == "__main__":
|
| 18 |
+
app.launch(mcp_server=True)
|