Spaces:
Runtime error
Runtime error
Upload with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -39,11 +39,12 @@ with minichain.start_chain("ner") as backend:
|
|
| 39 |
# )
|
| 40 |
# print(results)
|
| 41 |
|
| 42 |
-
|
| 43 |
-
|
| 44 |
|
| 45 |
-
|
| 46 |
-
|
|
|
|
| 47 |
|
| 48 |
|
| 49 |
# View prompt examples.
|
|
|
|
| 39 |
# )
|
| 40 |
# print(results)
|
| 41 |
|
| 42 |
+
gradio = prompt.to_gradio(fields =["text_input", "labels", "domain"],
|
| 43 |
+
examples=[["An NBA playoff pairing a year ago, the 76ers (39-20) meet the Miami Heat (32-29) for the first time this season on Monday night at home.", "Team, Date", "Sports"]])
|
| 44 |
|
| 45 |
+
|
| 46 |
+
if __name__ == "__main__":
|
| 47 |
+
gradio.launch()
|
| 48 |
|
| 49 |
|
| 50 |
# View prompt examples.
|