Spaces:
Runtime error
Runtime error
rest api
Browse files
app.py
CHANGED
@@ -1,5 +1,11 @@
|
|
1 |
-
import gradio
|
2 |
|
3 |
-
|
4 |
-
|
5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio
|
2 |
|
3 |
+
def my_inference_function(text):
|
4 |
+
return text
|
5 |
+
|
6 |
+
gradio_interface = gradio.Interface(
|
7 |
+
fn = my_inference_function,
|
8 |
+
inputs = "text",
|
9 |
+
outputs = "text"
|
10 |
+
)
|
11 |
+
gradio_interface.launch()
|