Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -55,6 +55,16 @@ def agent_response(prompt):
|
|
| 55 |
response = agent.run(prompt)
|
| 56 |
return response # Gradio will handle Markdown rendering
|
| 57 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
# Build UI
|
| 59 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
| 60 |
gr.Markdown("## 🤖 AI Wedding Planner Agent")
|
|
|
|
| 55 |
response = agent.run(prompt)
|
| 56 |
return response # Gradio will handle Markdown rendering
|
| 57 |
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
# ✅ Define function BEFORE using it
|
| 64 |
+
def process_request(user_input):
|
| 65 |
+
response = agent.run(user_input)
|
| 66 |
+
return response
|
| 67 |
+
|
| 68 |
# Build UI
|
| 69 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
| 70 |
gr.Markdown("## 🤖 AI Wedding Planner Agent")
|