Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -47,8 +47,8 @@ def respond(
|
|
47 |
|
48 |
# Build Gradio app
|
49 |
def create_demo():
|
50 |
-
|
51 |
-
gr.Markdown("# AI Model Comparison Tool 🌟")
|
52 |
gr.ChatInterface(
|
53 |
respond,
|
54 |
type="messages",
|
@@ -72,8 +72,8 @@ def create_demo():
|
|
72 |
value=["Llama"]
|
73 |
),
|
74 |
],
|
75 |
-
)
|
76 |
-
|
77 |
|
78 |
if __name__ == "__main__":
|
79 |
demo = create_demo()
|
|
|
47 |
|
48 |
# Build Gradio app
|
49 |
def create_demo():
|
50 |
+
with gr.Blocks() as demo:
|
51 |
+
gr.Markdown("# AI Model Comparison Tool 🌟")
|
52 |
gr.ChatInterface(
|
53 |
respond,
|
54 |
type="messages",
|
|
|
72 |
value=["Llama"]
|
73 |
),
|
74 |
],
|
75 |
+
)
|
76 |
+
return demo
|
77 |
|
78 |
if __name__ == "__main__":
|
79 |
demo = create_demo()
|