Update app.py
Browse files
app.py
CHANGED
|
@@ -292,7 +292,7 @@ def generate_response(prompt):
|
|
| 292 |
return f"An error occurred: {e}"
|
| 293 |
|
| 294 |
# --- Gradio UI Block ---
|
| 295 |
-
with gr.Blocks(title="Gemini API with Google Search") as gsearch:
|
| 296 |
gr.Markdown(
|
| 297 |
"""
|
| 298 |
# 🗾 Map Search Tool
|
|
@@ -307,12 +307,6 @@ with gr.Blocks(title="Gemini API with Google Search") as gsearch:
|
|
| 307 |
lines=2
|
| 308 |
)
|
| 309 |
|
| 310 |
-
# Output component to display the model's response
|
| 311 |
-
'''output_text = gr.Textbox(
|
| 312 |
-
label="Geminiの回答:",
|
| 313 |
-
lines=5,
|
| 314 |
-
interactive=False
|
| 315 |
-
)'''
|
| 316 |
output_text = gr.HTML(
|
| 317 |
label="目的地までの経路:",
|
| 318 |
value='<div>結果</div>'
|
|
@@ -334,4 +328,3 @@ with gr.Blocks(title="Gemini API with Google Search") as gsearch:
|
|
| 334 |
# Launch the Gradio app
|
| 335 |
if __name__ == "__main__":
|
| 336 |
gsearch.launch(favicon_path="path.ico")
|
| 337 |
-
|
|
|
|
| 292 |
return f"An error occurred: {e}"
|
| 293 |
|
| 294 |
# --- Gradio UI Block ---
|
| 295 |
+
with gr.Blocks(title="Gemini API with Google Search", css="""footer {visibility: hidden;} #header {display: flex; justify-content: space-between; align-items: center; font-size: 24px; font-weight: bold;} #logo {width: 50px; height: 50px;}""" ) as gsearch:
|
| 296 |
gr.Markdown(
|
| 297 |
"""
|
| 298 |
# 🗾 Map Search Tool
|
|
|
|
| 307 |
lines=2
|
| 308 |
)
|
| 309 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 310 |
output_text = gr.HTML(
|
| 311 |
label="目的地までの経路:",
|
| 312 |
value='<div>結果</div>'
|
|
|
|
| 328 |
# Launch the Gradio app
|
| 329 |
if __name__ == "__main__":
|
| 330 |
gsearch.launch(favicon_path="path.ico")
|
|
|