amstrongzyf commited on
Commit
5693cbb
1 Parent(s): 986b2b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -125,13 +125,13 @@ with gr.Blocks(css=css) as demo:
125
  value=default_args.max_new_tokens
126
  )
127
 
128
- gr.ChatInterface(
129
  fn=bot_streaming,
130
  chatbot=chatbot,
131
  textbox=chat_input,
132
  additional_inputs=[temperature, max_new_tokens],
133
  examples=[
134
- {"text": "What's in this image?", "files": ["http://images.cocodataset.org/val2017/000000039769.jpg"]},
135
  ],
136
  title="",
137
  description="",
@@ -141,5 +141,6 @@ with gr.Blocks(css=css) as demo:
141
  clear_btn="Clear",
142
  )
143
 
 
144
  if __name__ == "__main__":
145
  demo.queue(api_open=False).launch(share=False, debug=True)
 
125
  value=default_args.max_new_tokens
126
  )
127
 
128
+ chat_interface = gr.ChatInterface(
129
  fn=bot_streaming,
130
  chatbot=chatbot,
131
  textbox=chat_input,
132
  additional_inputs=[temperature, max_new_tokens],
133
  examples=[
134
+ {"text": "What is in this picture?", "files": ["http://images.cocodataset.org/val2017/000000039769.jpg"]},
135
  ],
136
  title="",
137
  description="",
 
141
  clear_btn="Clear",
142
  )
143
 
144
+
145
  if __name__ == "__main__":
146
  demo.queue(api_open=False).launch(share=False, debug=True)