Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -39,15 +39,15 @@ demo = gr.Blocks(theme=gr.themes.Default(primary_hue=gr.themes.colors.green, sec
|
|
39 |
with gr.Blocks() as demo:
|
40 |
with gr.Column(scale=1):
|
41 |
image = gr.Image(value=Image.open("frugal.jpg"), label="Frugal Image")
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
|
52 |
if __name__ == "__main__":
|
53 |
demo.launch(mcp_server=True, share=True)
|
|
|
39 |
with gr.Blocks() as demo:
|
40 |
with gr.Column(scale=1):
|
41 |
image = gr.Image(value=Image.open("frugal.jpg"), label="Frugal Image")
|
42 |
+
with gr.Row():
|
43 |
+
hello = gr.Interface(
|
44 |
+
fn=alfred,
|
45 |
+
inputs="text",
|
46 |
+
outputs="text",
|
47 |
+
title="Frugalize it!",
|
48 |
+
examples=["What are you capable of ?", "Here is my code, {code}, please give me frugal alternatives"],
|
49 |
+
description="Share your Python code with this AI agent! It will track its CO2 emissions using CodeCarbon and recommend greener, frugal AI alternatives."
|
50 |
+
)
|
51 |
|
52 |
if __name__ == "__main__":
|
53 |
demo.launch(mcp_server=True, share=True)
|