Spaces:
Runtime error
Runtime error
Cache and release.
Browse files- public_app.py +2 -2
public_app.py
CHANGED
|
@@ -77,7 +77,7 @@ if __name__ == '__main__':
|
|
| 77 |
app = gr.Interface(fn=get_chain,
|
| 78 |
inputs=[gr.Textbox(lines=2, placeholder="Enter your query", label='Your query'),
|
| 79 |
gr.Textbox(lines=1, placeholder="Your OpenAI API key here",
|
| 80 |
-
label='OpenAI Key (optional, for
|
| 81 |
description='Here, you can use a ChatGPT-powered retrieval augmented generation system to ask questions'
|
| 82 |
' about the [minutes]('
|
| 83 |
'https://www.federalreserve.gov/monetarypolicy.htm) of the Federal'
|
|
@@ -98,7 +98,7 @@ if __name__ == '__main__':
|
|
| 98 |
outputs=gr.Textbox(lines=1, label='Answer'),
|
| 99 |
title='Search the FED minutes archive',
|
| 100 |
examples=FedMinutesSearch,
|
| 101 |
-
cache_examples=
|
| 102 |
)
|
| 103 |
app.queue(concurrency_count=2)
|
| 104 |
app.launch()
|
|
|
|
| 77 |
app = gr.Interface(fn=get_chain,
|
| 78 |
inputs=[gr.Textbox(lines=2, placeholder="Enter your query", label='Your query'),
|
| 79 |
gr.Textbox(lines=1, placeholder="Your OpenAI API key here",
|
| 80 |
+
label='OpenAI Key (optional, for heavy use)')],
|
| 81 |
description='Here, you can use a ChatGPT-powered retrieval augmented generation system to ask questions'
|
| 82 |
' about the [minutes]('
|
| 83 |
'https://www.federalreserve.gov/monetarypolicy.htm) of the Federal'
|
|
|
|
| 98 |
outputs=gr.Textbox(lines=1, label='Answer'),
|
| 99 |
title='Search the FED minutes archive',
|
| 100 |
examples=FedMinutesSearch,
|
| 101 |
+
cache_examples=True
|
| 102 |
)
|
| 103 |
app.queue(concurrency_count=2)
|
| 104 |
app.launch()
|