kim80 commited on
Commit
bdd0e91
1 Parent(s): 6056ce0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -7
app.py CHANGED
@@ -1,10 +1,12 @@
1
- import gradio as gr
2
 
3
- def greet(name):
4
- return "Hello " + name + "!!"
5
 
6
- iface = gr.Interface(fn=greet, inputs="text", outputs="text")
7
- iface.launch()
8
 
9
-
10
- pip install gradio_client
 
 
 
 
 
 
 
1
 
2
+ pip install gradio_client
 
3
 
4
+ from gradio_client import Client
 
5
 
6
+ client = Client("https://eddycrack864-uvr5.hf.space/")
7
+ result = client.predict(
8
+ "VR Arc,VR Arc", # str (Option from: [('VR Arc', 'VR Arc'), ('MDX-Net', 'MDX-Net')])
9
+ in 'CHOOSE PROCESS METHOD' Dropdown component
10
+ fn_index=0
11
+ )
12
+ print(result)