carolanderson commited on
Commit
887a2c0
1 Parent(s): c6b472b

change app layout

Browse files
Files changed (1) hide show
  1. app.py +5 -4
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
- inp = gr.Textbox(placeholder="Enter text here...", lines=4)
48
- out = gr.HighlightedText()
49
- btn = gr.Button("Run")
50
- gr.Examples(examples, inp)
 
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'>"