Spaces:
Running
Running
Upload app.py
Browse files
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?"]
|