Sanchit Verma commited on
Commit
55ee68d
·
1 Parent(s): 0bb902d

Rename app variable to demo in app.py for clarity and consistency in Gradio usage

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -34,7 +34,7 @@ def handle_message(persona, user_input, history):
34
  return history + [{"role": "assistant", "content": f"Error: {str(e)}"}]
35
 
36
 
37
- with gr.Blocks() as app:
38
  gr.Markdown("## 🤖 LLMates: Persona-based Chat Assistant")
39
 
40
  persona = gr.Dropdown(
@@ -87,4 +87,4 @@ with gr.Blocks() as app:
87
 
88
  # main function
89
  if __name__ == "__main__":
90
- app.launch()
 
34
  return history + [{"role": "assistant", "content": f"Error: {str(e)}"}]
35
 
36
 
37
+ with gr.Blocks() as demo:
38
  gr.Markdown("## 🤖 LLMates: Persona-based Chat Assistant")
39
 
40
  persona = gr.Dropdown(
 
87
 
88
  # main function
89
  if __name__ == "__main__":
90
+ demo.launch()