Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -46,14 +46,13 @@ with gr.Blocks() as demo1:
|
|
| 46 |
out = gr.Textbox()
|
| 47 |
inp.change(welcome, inp, out)
|
| 48 |
|
| 49 |
-
demo=gr.Interface(
|
| 50 |
fn=alfred,
|
| 51 |
inputs="text",
|
| 52 |
outputs="text",
|
| 53 |
title="Frugalize it!",
|
| 54 |
examples=["What are you capable of ?", "Here is my code, {code}, please give me frugal alternatives"],
|
| 55 |
-
description="Share your Python code with this AI agent! It will track its CO2 emissions using CodeCarbon and recommend greener, frugal AI alternatives.")
|
| 56 |
|
| 57 |
if __name__ == "__main__":
|
| 58 |
-
demo.launch(mcp_server=True, share=True)
|
| 59 |
-
demo1.launch()
|
|
|
|
| 46 |
out = gr.Textbox()
|
| 47 |
inp.change(welcome, inp, out)
|
| 48 |
|
| 49 |
+
demo=[gr.Interface(
|
| 50 |
fn=alfred,
|
| 51 |
inputs="text",
|
| 52 |
outputs="text",
|
| 53 |
title="Frugalize it!",
|
| 54 |
examples=["What are you capable of ?", "Here is my code, {code}, please give me frugal alternatives"],
|
| 55 |
+
description="Share your Python code with this AI agent! It will track its CO2 emissions using CodeCarbon and recommend greener, frugal AI alternatives."), demo1]
|
| 56 |
|
| 57 |
if __name__ == "__main__":
|
| 58 |
+
demo.launch(mcp_server=True, share=True)
|
|
|