app.py
CHANGED
@@ -29,11 +29,11 @@ Format your response as a JSON object with \
|
|
29 |
Text sample: '''{input}'''
|
30 |
"""
|
31 |
response = get_completion(prompt)
|
32 |
-
return
|
33 |
|
34 |
#iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
35 |
#iface.launch()
|
36 |
|
37 |
#iface = gr.Interface(fn=greet, inputs=[gr.Textbox(label="Text to find entities", lines=2)], outputs=[gr.HighlightedText(label="Text with entities")], title="NER with dslim/bert-base-NER", description="Find entities using the `dslim/bert-base-NER` model under the hood!", allow_flagging="never", examples=["My name is Andrew and I live in California", "My name is Poli and work at HuggingFace"])
|
38 |
-
iface = gr.Interface(fn=greet, inputs=[gr.Textbox(label="Elevator pitch", lines=3)], outputs="
|
39 |
iface.launch()
|
|
|
29 |
Text sample: '''{input}'''
|
30 |
"""
|
31 |
response = get_completion(prompt)
|
32 |
+
return response
|
33 |
|
34 |
#iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
35 |
#iface.launch()
|
36 |
|
37 |
#iface = gr.Interface(fn=greet, inputs=[gr.Textbox(label="Text to find entities", lines=2)], outputs=[gr.HighlightedText(label="Text with entities")], title="NER with dslim/bert-base-NER", description="Find entities using the `dslim/bert-base-NER` model under the hood!", allow_flagging="never", examples=["My name is Andrew and I live in California", "My name is Poli and work at HuggingFace"])
|
38 |
+
iface = gr.Interface(fn=greet, inputs=[gr.Textbox(label="Elevator pitch", lines=3)], outputs="json")
|
39 |
iface.launch()
|