amitpandey8 commited on
Commit
cf4809d
·
verified ·
1 Parent(s): 89660d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -36,13 +36,10 @@ def respond(
36
  response += token
37
  yield response
38
 
39
- """
40
- For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
41
- """
42
- demo = gr.ChatInterface(
43
  respond,
44
  additional_inputs=[
45
- gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
46
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
47
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
48
  gr.Slider(
@@ -57,4 +54,4 @@ demo = gr.ChatInterface(
57
 
58
 
59
  if __name__ == "__main__":
60
- demo.launch()
 
36
  response += token
37
  yield response
38
 
39
+ nvs = gr.ChatInterface(
 
 
 
40
  respond,
41
  additional_inputs=[
42
+ gr.Textbox(value="NVS AI For Student and Teacher.", label="System message"),
43
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
44
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
45
  gr.Slider(
 
54
 
55
 
56
  if __name__ == "__main__":
57
+ nvs.launch()