Zihang Sun commited on
Commit
71d5bf8
·
1 Parent(s): c93a80b

reset environment

Browse files
Files changed (2) hide show
  1. app.py +1 -6
  2. requirements.txt +0 -1
app.py CHANGED
@@ -43,17 +43,12 @@ def respond(
43
  """
44
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
45
  """
46
- try:
47
- import plotly
48
- test_import = 'It workded!'
49
- except ImportError:
50
- test_import = 'Plotly is not installed'
51
 
52
  chatbot = gr.ChatInterface(
53
  respond,
54
  type="messages",
55
  additional_inputs=[
56
- gr.Textbox(value=f"You are a friendly Chatbot. You always speak to the user in ryhmes. And you always add this message to the end: {test_import}", label="System message"),
57
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
58
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
59
  gr.Slider(
 
43
  """
44
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
45
  """
 
 
 
 
 
46
 
47
  chatbot = gr.ChatInterface(
48
  respond,
49
  type="messages",
50
  additional_inputs=[
51
+ gr.Textbox(value=f"You are a friendly Chatbot. You always speak to the user in ryhmes.", 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(
requirements.txt CHANGED
@@ -1 +0,0 @@
1
- plotly