Spaces:
Runtime error
Runtime error
Removed cashing, fixing front-end cosmetics only.
Browse files- public_app.py +8 -6
public_app.py
CHANGED
|
@@ -71,13 +71,15 @@ if __name__ == '__main__':
|
|
| 71 |
inputs=[gr.Textbox(lines=2, placeholder="Enter your query", label='Your query'),
|
| 72 |
gr.Textbox(lines=1, placeholder="Your OpenAI API key here",
|
| 73 |
label='OpenAI Key (optional, for faster response time)')],
|
| 74 |
-
description='Here, you can
|
|
|
|
| 75 |
'https://www.federalreserve.gov/monetarypolicy.htm) of the Federal'
|
| 76 |
-
' Open Market Committee meetings from March 1936 to
|
| 77 |
'tuned to focus on economic, '
|
| 78 |
-
'cultural, financial, and political developments occurring at
|
| 79 |
-
' The model actively looks for the presence of date elements
|
| 80 |
-
'and will raise an error if it cannot find any
|
|
|
|
| 81 |
' Click the query examples below to see some possible outputs from the model.',
|
| 82 |
article='**Disclaimer**: This app is for demonstration purposes only, and no assurance of uninterrupted'
|
| 83 |
' functionality can be given at this time. Answers may take some'
|
|
@@ -94,7 +96,7 @@ if __name__ == '__main__':
|
|
| 94 |
'of April 2009 with respect to labour market developments and industrial production?'],
|
| 95 |
['How important was the pandemic of Covid-19 in the discussions during 2020 for the effects of monetary policy?'],
|
| 96 |
['What was the impact of the oil crisis for the economic outlook during 1973?']],
|
| 97 |
-
cache_examples=
|
| 98 |
)
|
| 99 |
app.queue()
|
| 100 |
app.launch()
|
|
|
|
| 71 |
inputs=[gr.Textbox(lines=2, placeholder="Enter your query", label='Your query'),
|
| 72 |
gr.Textbox(lines=1, placeholder="Your OpenAI API key here",
|
| 73 |
label='OpenAI Key (optional, for faster response time)')],
|
| 74 |
+
description='Here, you can use a ChatGPT-powered information retrieval system to ask questions'
|
| 75 |
+
'specifically about the [minutes]('
|
| 76 |
'https://www.federalreserve.gov/monetarypolicy.htm) of the Federal'
|
| 77 |
+
' Open Market Committee meetings from March 1936 to June 2023. The answers are '
|
| 78 |
'tuned to focus on economic, '
|
| 79 |
+
'cultural, financial, and political developments occurring at given times.'
|
| 80 |
+
' The model actively looks for the presence of date elements in the query '
|
| 81 |
+
'and will raise an error if it cannot find any element to minimize the risk of model '
|
| 82 |
+
'hallucination. Nevertheless the usual caveats for generative AI apply.'
|
| 83 |
' Click the query examples below to see some possible outputs from the model.',
|
| 84 |
article='**Disclaimer**: This app is for demonstration purposes only, and no assurance of uninterrupted'
|
| 85 |
' functionality can be given at this time. Answers may take some'
|
|
|
|
| 96 |
'of April 2009 with respect to labour market developments and industrial production?'],
|
| 97 |
['How important was the pandemic of Covid-19 in the discussions during 2020 for the effects of monetary policy?'],
|
| 98 |
['What was the impact of the oil crisis for the economic outlook during 1973?']],
|
| 99 |
+
cache_examples=False
|
| 100 |
)
|
| 101 |
app.queue()
|
| 102 |
app.launch()
|