kevinconka commited on
Commit
460eb6c
·
2 Parent(s): 8b14269 b0438f6

Merge remote-tracking branch 'origin/main'

Browse files
Files changed (2) hide show
  1. README.md +2 -2
  2. app.py +2 -1
README.md CHANGED
@@ -4,10 +4,10 @@ emoji: 💬
4
  colorFrom: blue
5
  colorTo: yellow
6
  sdk: gradio
7
- sdk_version: 4.36.0
8
  app_file: app.py
9
  pinned: false
10
  license: mit
11
  ---
12
 
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
4
  colorFrom: blue
5
  colorTo: yellow
6
  sdk: gradio
7
+ sdk_version: 4.37.2
8
  app_file: app.py
9
  pinned: false
10
  license: mit
11
  ---
12
 
13
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
app.py CHANGED
@@ -100,9 +100,10 @@ with gr.ChatInterface(
100
  demo.load(lambda: download_html(url, filename))
101
  # This needs to be called prior to the first call to callback.flag()
102
  hf_writer.setup([demo.textbox, demo.chatbot], "flagged")
 
103
  # like callback
104
  chatbot.like(on_like, None, None)
105
 
106
 
107
  if __name__ == "__main__":
108
- demo.launch()
 
100
  demo.load(lambda: download_html(url, filename))
101
  # This needs to be called prior to the first call to callback.flag()
102
  hf_writer.setup([demo.textbox, demo.chatbot], "flagged")
103
+ print("flagging setup done!")
104
  # like callback
105
  chatbot.like(on_like, None, None)
106
 
107
 
108
  if __name__ == "__main__":
109
+ demo.launch(cache_examples=False)