CK42 commited on
Commit
a079114
1 Parent(s): a14bbf4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -7
app.py CHANGED
@@ -6,11 +6,6 @@ import requests.exceptions
6
  from huggingface_hub import HfApi, hf_hub_download
7
  from huggingface_hub.repocard import metadata_load
8
 
9
- #pipe = joblib.load("https://huggingface.co/spaces/scikit-learn/sentiment-analysis/tree/main/pipeline.pkl")
10
- #inputs = [gr.Textbox(value = "The customer service was satisfactory.")]
11
- #outputs = [gr.Label(label = "Sentiment")]
12
- #title = "Sentiment Analysis"
13
-
14
  app = gr.Blocks()
15
 
16
  def load_agent(model_id_1, model_id_2):
@@ -73,12 +68,13 @@ with app:
73
  with gr.Row():
74
  inp = gr.Textbox(label="Type text here.",placeholder="The customer service was satisfactory.")
75
  out = gr.Textbox(label="Prediction")
76
- btn = gr.Button("Run")
 
77
  btn.click(fn=predict, inputs=inp, outputs=out)
78
 
79
  gr.Markdown(
80
  """
81
- Type two models id you want to compare or check examples below.
82
  """)
83
  with gr.Row():
84
  model1_input = gr.Textbox(label="Model 1")
 
6
  from huggingface_hub import HfApi, hf_hub_download
7
  from huggingface_hub.repocard import metadata_load
8
 
 
 
 
 
 
9
  app = gr.Blocks()
10
 
11
  def load_agent(model_id_1, model_id_2):
 
68
  with gr.Row():
69
  inp = gr.Textbox(label="Type text here.",placeholder="The customer service was satisfactory.")
70
  out = gr.Textbox(label="Prediction")
71
+ with gr.Row():
72
+ btn = gr.Button("Predict")
73
  btn.click(fn=predict, inputs=inp, outputs=out)
74
 
75
  gr.Markdown(
76
  """
77
+ Type two model's id you want to compare or check examples below.
78
  """)
79
  with gr.Row():
80
  model1_input = gr.Textbox(label="Model 1")