Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -257,7 +257,7 @@ def get_reviews(url):
|
|
257 |
#print(get_reviews(url))
|
258 |
|
259 |
if __name__ == '__main__':
|
260 |
-
asyncio.
|
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()
|