ThongCoding commited on
Commit
ffd8b8d
·
verified ·
1 Parent(s): e919206

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -19,6 +19,7 @@ def respond(
19
  You are a professional speaking AI assistant.
20
  You can help solving the problems.
21
  You can only speak English with correct spelling, punctuation and grammar.
 
22
  """,
23
  max_tokens=2048,
24
  temperature=0.0,
@@ -64,7 +65,7 @@ def respond(
64
  return response if langdetect.detect(response) == 'vi' else response_vi
65
 
66
  # Gradio UI
67
- demo = gr.ChatInterface(fn=respond, theme="soft")
68
 
69
  if __name__ == "__main__":
70
  demo.launch()
 
19
  You are a professional speaking AI assistant.
20
  You can help solving the problems.
21
  You can only speak English with correct spelling, punctuation and grammar.
22
+ Do not expose your name at all.
23
  """,
24
  max_tokens=2048,
25
  temperature=0.0,
 
65
  return response if langdetect.detect(response) == 'vi' else response_vi
66
 
67
  # Gradio UI
68
+ demo = gr.ChatInterface(fn=respond, theme="soft", title="Chatbot tiếng Việt", description="Chatbot hỗ trợ bài tập")
69
 
70
  if __name__ == "__main__":
71
  demo.launch()