Update app.py
Browse files
app.py
CHANGED
|
@@ -4,6 +4,9 @@ warnings.filterwarnings("ignore", message="pkg_resources is deprecated")
|
|
| 4 |
|
| 5 |
import gradio as gr
|
| 6 |
from pipeline import run_pipeline
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
def infer(file):
|
| 9 |
# gr.File gives a tempfile object; if you used gr.Audio it might be a str
|
|
@@ -25,4 +28,5 @@ if __name__ == "__main__":
|
|
| 25 |
server_port=7860,
|
| 26 |
show_error=True,
|
| 27 |
max_threads=1, # be gentle on Spaces CPU
|
|
|
|
| 28 |
)
|
|
|
|
| 4 |
|
| 5 |
import gradio as gr
|
| 6 |
from pipeline import run_pipeline
|
| 7 |
+
import gradio as gr, fastapi, gradio_client
|
| 8 |
+
print("GRADIO_VER:", gr.__version__, "FASTAPI_VER:", fastapi.__version__, "GRADIO_CLIENT_VER:", gradio_client.__version__)
|
| 9 |
+
|
| 10 |
|
| 11 |
def infer(file):
|
| 12 |
# gr.File gives a tempfile object; if you used gr.Audio it might be a str
|
|
|
|
| 28 |
server_port=7860,
|
| 29 |
show_error=True,
|
| 30 |
max_threads=1, # be gentle on Spaces CPU
|
| 31 |
+
share=True
|
| 32 |
)
|