Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -1,13 +1,16 @@
|
|
1 |
# import gradio as gr
|
2 |
-
|
3 |
|
4 |
# gr.Interface.load("models/deepset/roberta-base-squad2").launch()
|
5 |
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
|
|
|
|
|
|
|
1 |
# import gradio as gr
|
2 |
+
|
3 |
|
4 |
# gr.Interface.load("models/deepset/roberta-base-squad2").launch()
|
5 |
|
6 |
+
import gradio
|
7 |
+
|
8 |
+
def my_inference_function(name):
|
9 |
+
return "Hello " + name + "!"
|
10 |
+
|
11 |
+
gradio_interface = gradio.Interface(
|
12 |
+
fn = my_inference_function,
|
13 |
+
inputs = "text",
|
14 |
+
outputs = "text"
|
15 |
+
)
|
16 |
+
gradio_interface.launch()
|