Spaces:
Sleeping
Sleeping
Washedashore
commited on
Commit
•
2ff2e8c
1
Parent(s):
6800da3
Create predict
Browse files
predict
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from gradio_client import Client, handle_file
|
2 |
+
|
3 |
+
client = Client("Washedashore/vidscript")
|
4 |
+
result = client.predict(
|
5 |
+
param_0=handle_file('https://github.com/gradio-app/gradio/raw/main/test/test_files/audio_sample.wav'),
|
6 |
+
api_name="/predict"
|
7 |
+
)
|
8 |
+
print(result)
|