Update app.py
Browse files
app.py
CHANGED
@@ -1,14 +1,7 @@
|
|
1 |
import gradio
|
2 |
|
3 |
def my_inference_function(name):
|
4 |
-
|
5 |
-
client = Client("https://decre99-gradio.hf.space/--replicas/gepaz/")
|
6 |
-
result = client.predict(
|
7 |
-
"Hello!!", # str in 'name' Textbox component
|
8 |
-
api_name="/predict"
|
9 |
-
)
|
10 |
-
print(result)
|
11 |
-
return result
|
12 |
|
13 |
gradio_interface = gradio.Interface(
|
14 |
fn = my_inference_function,
|
|
|
1 |
import gradio
|
2 |
|
3 |
def my_inference_function(name):
|
4 |
+
return "Hello " + name + "!"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
gradio_interface = gradio.Interface(
|
7 |
fn = my_inference_function,
|