ruisp commited on
Commit
1b1fd6f
·
1 Parent(s): d72181c
Files changed (1) hide show
  1. public_app.py +9 -5
public_app.py CHANGED
@@ -69,11 +69,15 @@ 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 (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. This app is tuned to focus on economic,
75
- 'cultural, financial, and political developments ocurring at specific timeframe.'
76
- ' The model actively looks for the presence of date elements present in the query and will raise an error if it cannot find it.'
 
 
 
 
77
  ' Click the examples below to see the tool in action.',
78
  article='**Disclaimer**: This app is for demonstration purposes only, and answers may take some'
79
  ' time to complete'
 
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",
73
+ label='OpenAI Key (optional, for faster response time')],
74
+ description='Here, you can query the [minutes]('
75
+ 'https://www.federalreserve.gov/monetarypolicy.htm) of the Federal'
76
+ 'Open Market Committee meetings from March 1936 to June 2023. The answers are '
77
+ 'tuned to focus on economic, '
78
+ 'cultural, financial, and political developments occurring at specific times.'
79
+ 'The model actively looks for the presence of date elements present in the query '
80
+ 'and will raise an error if it cannot find it.'
81
  ' Click the examples below to see the tool in action.',
82
  article='**Disclaimer**: This app is for demonstration purposes only, and answers may take some'
83
  ' time to complete'