Spaces:
Runtime error
Runtime error
Update public_app.py
Browse files- public_app.py +2 -2
public_app.py
CHANGED
@@ -69,13 +69,13 @@ def get_chain(query, api_key=os.environ['OPENAI_API_KEY']):
|
|
69 |
if __name__ == '__main__':
|
70 |
app = gr.Interface(fn=get_chain,
|
71 |
inputs=[gr.Textbox(lines=2, placeholder="Enter your query", label='Your query'),
|
72 |
-
gr.Textbox(lines=1, placeholder="Your OpenAI API key here", label='OpenAI Key')],
|
73 |
description='Here, you can query the [minutes](https://www.federalreserve.gov/monetarypolicy.htm) of the Federal '
|
74 |
'Open Market Committee meetings from March 1936 to June 2023. Click the examples'
|
75 |
' below to see the tool in action.',
|
76 |
article='**Disclaimer**: This app is for demonstration purposes only, and answers may take some'
|
77 |
'time to complete'
|
78 |
-
'during periods of heavy
|
79 |
analytics_enabled=True,
|
80 |
outputs=gr.Textbox(lines=1, label='Answer'),
|
81 |
title='Chat with the FED-FOMC meeting minutes',
|
|
|
69 |
if __name__ == '__main__':
|
70 |
app = gr.Interface(fn=get_chain,
|
71 |
inputs=[gr.Textbox(lines=2, placeholder="Enter your query", label='Your query'),
|
72 |
+
gr.Textbox(lines=1, placeholder="Your OpenAI API key here", label='OpenAI Key (optional, for faster response time')],
|
73 |
description='Here, you can query the [minutes](https://www.federalreserve.gov/monetarypolicy.htm) of the Federal '
|
74 |
'Open Market Committee meetings from March 1936 to June 2023. Click the examples'
|
75 |
' below to see the tool in action.',
|
76 |
article='**Disclaimer**: This app is for demonstration purposes only, and answers may take some'
|
77 |
'time to complete'
|
78 |
+
'during periods of heavy usage. Please be patient :)',
|
79 |
analytics_enabled=True,
|
80 |
outputs=gr.Textbox(lines=1, label='Answer'),
|
81 |
title='Chat with the FED-FOMC meeting minutes',
|