Spaces:
Runtime error
Runtime error
Commit
·
afbd3cd
1
Parent(s):
74b0366
Interface changes
Browse files
app.py
CHANGED
@@ -150,9 +150,11 @@ def disambiguate(text, acronym):
|
|
150 |
js, exp = evaluate_jaccard(text, expansion[0], acronym[0], offsets[0], start_idx, end_idx)
|
151 |
return exp
|
152 |
|
153 |
-
text = gr.inputs.Textbox(lines=5, label="Context"
|
154 |
-
|
155 |
-
|
|
|
|
|
156 |
|
157 |
iface = gr.Interface(fn=disambiguate, inputs=[text, acronym], outputs=expansion)
|
158 |
iface.launch()
|
|
|
150 |
js, exp = evaluate_jaccard(text, expansion[0], acronym[0], offsets[0], start_idx, end_idx)
|
151 |
return exp
|
152 |
|
153 |
+
text = gr.inputs.Textbox(lines=5, label="Context",\
|
154 |
+
default="Particularly , we explore four CNN architectures , AlexNet , GoogLeNet , VGG-16 , and ResNet to derive features for all images in our dataset , which are labeled as private or public .")
|
155 |
+
|
156 |
+
acronym = gr.inputs.Textbox(lines=2, label="Acronym", default="CNN")
|
157 |
+
expansion = gr.outputs.Textbox(label="Expansion")
|
158 |
|
159 |
iface = gr.Interface(fn=disambiguate, inputs=[text, acronym], outputs=expansion)
|
160 |
iface.launch()
|