epalvarez commited on
Commit
296e060
·
verified ·
1 Parent(s): fecb7e2

Changing output UI component

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -272,8 +272,9 @@ def predict(user_input):
272
  # Input components
273
  user_question_textbox = gr.Textbox(placeholder="Enter your query here", lines=6)
274
  # Output components
275
- model_prediction = gr.Label(label="Model prediction")
276
- # model_prediction = "text"
 
277
 
278
  # Create the interface
279
  demo = gr.Interface(
@@ -304,4 +305,6 @@ demo = gr.Interface(
304
  # Launch container hosted by HuggingFace with a load balancer
305
  demo.queue()
306
  demo.launch(share=False)
307
- # To create a public link, set "share=True" in launch() .... but if I execute this app.py locally, then I have to have my computer on for the public users to access the browser interface
 
 
 
272
  # Input components
273
  user_question_textbox = gr.Textbox(placeholder="Enter your query here", lines=6)
274
  # Output components
275
+ model_prediction = "text"
276
+ # model_prediction = gr.Label(label="Model prediction") # This produces large font (not appropriate UI component)
277
+
278
 
279
  # Create the interface
280
  demo = gr.Interface(
 
305
  # Launch container hosted by HuggingFace with a load balancer
306
  demo.queue()
307
  demo.launch(share=False)
308
+ # To create a public link, set "share=True" in launch() .... but if I execute this app.py locally, then I have to have my computer on for the public users to access the browser interface
309
+
310
+ # +++