Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,18 +1,4 @@
|
|
1 |
-
import gradio
|
2 |
|
3 |
-
|
4 |
-
return "Hello " + name + "!"
|
5 |
|
6 |
-
|
7 |
-
fn=my_inference_function,
|
8 |
-
inputs="text",
|
9 |
-
outputs="text",
|
10 |
-
examples=[
|
11 |
-
["Jill"],
|
12 |
-
["Sam"]
|
13 |
-
],
|
14 |
-
title="REST API with Gradio and Huggingface Spaces",
|
15 |
-
description="This is a demo of how to build an AI powered REST API with Gradio and Huggingface Spaces – for free! Based on [this article](https://www.tomsoderlund.com/ai/building-ai-powered-rest-api). See the **Use via API** link at the bottom of this page.",
|
16 |
-
article="© Tom Söderlund 2022"
|
17 |
-
)
|
18 |
-
gradio_interface.launch()
|
|
|
|
|
1 |
|
2 |
+
import gradio as gr
|
|
|
3 |
|
4 |
+
gr.load("models/tsmatz/xlm-roberta-ner-japanese").launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|