Spaces:
Build error
Build error
Ahsen Khaliq
commited on
Commit
·
a64d3c8
1
Parent(s):
5a176c8
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,7 @@
|
|
| 1 |
import model as st_model
|
| 2 |
import gradio as gr
|
|
|
|
|
|
|
| 3 |
|
| 4 |
model = st_model.summarizer()
|
| 5 |
|
|
@@ -21,5 +23,6 @@ gr.Interface(
|
|
| 21 |
article=article,
|
| 22 |
examples=[["""PG&E stated it scheduled the blackouts in response to forecasts for high winds amid dry conditions.
|
| 23 |
The aim is to reduce the risk of wildfires. Nearly 800 thousand customers were scheduled to be affected
|
| 24 |
-
by the shutoffs which were expected to last through at least midday tomorrow."""]]
|
|
|
|
| 25 |
).launch(debug=True)
|
|
|
|
| 1 |
import model as st_model
|
| 2 |
import gradio as gr
|
| 3 |
+
import os
|
| 4 |
+
os.system('pip install gradio --upgrade')
|
| 5 |
|
| 6 |
model = st_model.summarizer()
|
| 7 |
|
|
|
|
| 23 |
article=article,
|
| 24 |
examples=[["""PG&E stated it scheduled the blackouts in response to forecasts for high winds amid dry conditions.
|
| 25 |
The aim is to reduce the risk of wildfires. Nearly 800 thousand customers were scheduled to be affected
|
| 26 |
+
by the shutoffs which were expected to last through at least midday tomorrow."""]],
|
| 27 |
+
enable_queue=True
|
| 28 |
).launch(debug=True)
|