dfinel commited on
Commit
10745a1
1 Parent(s): 9931ddd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -257,7 +257,7 @@ def get_reviews(url):
257
  #print(get_reviews(url))
258
 
259
  if __name__ == '__main__':
260
- asyncio.set_event_loop_policy(asyncio.DefaultEventLoopPolicy())
261
  interface = gr.Interface(fn=get_reviews, inputs=gr.Textbox(), outputs=[gr.Textbox(label = 'Real ratings'),gr.Textbox(label = 'Actionable insights')], title='The Topic Magnet',
262
  description='Enter the url of your Amazon reviews to get real ratings and valuable insights')
263
  interface.launch()
 
257
  #print(get_reviews(url))
258
 
259
  if __name__ == '__main__':
260
+ asyncio.set_event_loop(asyncio.new_event_loop())
261
  interface = gr.Interface(fn=get_reviews, inputs=gr.Textbox(), outputs=[gr.Textbox(label = 'Real ratings'),gr.Textbox(label = 'Actionable insights')], title='The Topic Magnet',
262
  description='Enter the url of your Amazon reviews to get real ratings and valuable insights')
263
  interface.launch()