Spaces:
Sleeping
Sleeping
finished
Browse files
app.py
CHANGED
|
@@ -6,14 +6,13 @@ DEBUG_MODE = True
|
|
| 6 |
|
| 7 |
|
| 8 |
def request(text):
|
| 9 |
-
|
| 10 |
-
#return result
|
| 11 |
result = client.predict(
|
| 12 |
-
|
| 13 |
api_name="/predict"
|
| 14 |
)
|
| 15 |
return result
|
| 16 |
|
| 17 |
-
demo = gr.Interface(fn=request, inputs="textbox", outputs="
|
| 18 |
|
| 19 |
demo.launch(share=True)
|
|
|
|
| 6 |
|
| 7 |
|
| 8 |
def request(text):
|
| 9 |
+
|
|
|
|
| 10 |
result = client.predict(
|
| 11 |
+
text,
|
| 12 |
api_name="/predict"
|
| 13 |
)
|
| 14 |
return result
|
| 15 |
|
| 16 |
+
demo = gr.Interface(fn=request, inputs="textbox", outputs="json")
|
| 17 |
|
| 18 |
demo.launch(share=True)
|