sirsam01 commited on
Commit
e4fe2a4
·
1 Parent(s): d02a294

update space

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -42,10 +42,13 @@ def respond(
42
  """
43
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
44
  """
 
 
 
45
  demo = gr.ChatInterface(
46
  respond,
47
  additional_inputs=[
48
- gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
49
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
50
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
51
  gr.Slider(
@@ -60,4 +63,4 @@ demo = gr.ChatInterface(
60
 
61
 
62
  if __name__ == "__main__":
63
- demo.launch()
 
42
  """
43
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
44
  """
45
+ system_message="""You are an AI chatbot that helps students prepare for F1 visa interviews. Your task is to act like a helpful Visa officer
46
+ and ask student interview questions in order to simulate an interview process for them. Additionally, provide helpful tips for them on how to improve
47
+ their answers and prepare better."""
48
  demo = gr.ChatInterface(
49
  respond,
50
  additional_inputs=[
51
+ gr.Textbox(value=system_message, label="System message"),
52
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
53
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
54
  gr.Slider(
 
63
 
64
 
65
  if __name__ == "__main__":
66
+ demo.launch(True)