ruisp commited on
Commit
22457ab
·
1 Parent(s): 432a73b

Tuned description.

Browse files
Files changed (1) hide show
  1. public_app.py +6 -6
public_app.py CHANGED
@@ -72,14 +72,14 @@ if __name__ == '__main__':
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'
@@ -91,12 +91,12 @@ if __name__ == '__main__':
91
  outputs=gr.Textbox(lines=1, label='Answer'),
92
  title='Chat with the FED meeting minutes',
93
  examples=[['Summarize the monetary policy outlook discussed by the participants during the meeting of June 2023 in three paragraphs.'],
94
- ['Who were the voting members present in the meeting on March 2023?'],
95
  ['What was the economic outlook from the staff presented in the meeting '
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()
 
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
+ ' 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 a given time.'
80
  ' The model actively looks for the presence of date elements in the query '
81
+ 'and will raise an error if it cannot find them to minimize the risk of model '
82
+ 'hallucination. Nevertheless the usual caveats for application making use of 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'
 
91
  outputs=gr.Textbox(lines=1, label='Answer'),
92
  title='Chat with the FED meeting minutes',
93
  examples=[['Summarize the monetary policy outlook discussed by the participants during the meeting of June 2023 in three paragraphs.'],
94
+ ['Who were the voting members present in the meeting of March 2023?'],
95
  ['What was the economic outlook from the staff presented in the meeting '
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(concurrency_count=2)
102
  app.launch()