Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# Step 3: Integrate the Tool with Alfred
|
| 2 |
# Finally, let’s bring everything together by creating our agent and equipping it with our custom tool:
|
| 3 |
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
def greet(name):
|
| 4 |
+
return "Hello " + name + "!!"
|
| 5 |
+
|
| 6 |
+
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 7 |
+
demo.launch()
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
|
| 11 |
# Step 3: Integrate the Tool with Alfred
|
| 12 |
# Finally, let’s bring everything together by creating our agent and equipping it with our custom tool:
|
| 13 |
|