robertolofaro commited on
Commit
d79c31c
·
verified ·
1 Parent(s): 17b7627

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -159,6 +159,7 @@ with gr.Blocks(title="Article Q&A model") as demo:
159
  gr.ChatInterface(
160
  fn=generate_response,
161
  additional_inputs=[rag_mode, article_filter, max_tokens, temperature, top_p, repeat_penalty],
 
162
  examples=[
163
  ["What is the potential for Italy?"],
164
  ["What is the potential for Turin?"]
 
159
  gr.ChatInterface(
160
  fn=generate_response,
161
  additional_inputs=[rag_mode, article_filter, max_tokens, temperature, top_p, repeat_penalty],
162
+ cache_examples=False, # <--- Stops Gradio from executing them at startup
163
  examples=[
164
  ["What is the potential for Italy?"],
165
  ["What is the potential for Turin?"]