cetusian commited on
Commit
f3d87e2
·
verified ·
1 Parent(s): 4fc9e70

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -47,8 +47,8 @@ def respond(
47
 
48
  # Build Gradio app
49
  def create_demo():
50
- return gr.Blocks().add(
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()