Spaces:
Runtime error
Runtime error
carolanderson
commited on
Commit
•
887a2c0
1
Parent(s):
c6b472b
change app layout
Browse files
app.py
CHANGED
@@ -44,10 +44,11 @@ if __name__ == "__main__":
|
|
44 |
"I fine tuned RoBERTa base on a dataset I created by labeling a set of recipes.")
|
45 |
gr.Markdown("Details about the training data and training process are below.")
|
46 |
with gr.Row():
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
|
|
51 |
btn.click(fn=tag, inputs=inp, outputs=out)
|
52 |
gr.Markdown(blog_text)
|
53 |
html_2 = ("<div style='max-width:100%; max-height:50px; overflow:auto'>"
|
|
|
44 |
"I fine tuned RoBERTa base on a dataset I created by labeling a set of recipes.")
|
45 |
gr.Markdown("Details about the training data and training process are below.")
|
46 |
with gr.Row():
|
47 |
+
with gr.Column():
|
48 |
+
inp = gr.Textbox(placeholder="Enter text here...", lines=4, label="Input text")
|
49 |
+
btn = gr.Button("Tag food")
|
50 |
+
gr.Examples(examples, inp, label="Examples (click to use)")
|
51 |
+
out = gr.HighlightedText(label="Predictions")
|
52 |
btn.click(fn=tag, inputs=inp, outputs=out)
|
53 |
gr.Markdown(blog_text)
|
54 |
html_2 = ("<div style='max-width:100%; max-height:50px; overflow:auto'>"
|