mreidy3 commited on
Commit
4ba066a
·
verified ·
1 Parent(s): f4452a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,4 +1,4 @@
1
- import gradio as gr
2
  # from huggingface_hub import InferenceClient
3
  from transformers import AutoModelForSequenceClassification, AutoConfig, AutoTokenizer
4
  import torch
@@ -90,8 +90,8 @@ For information on how to customize the ChatInterface, peruse the gradio docs: h
90
  # Set up the Gradio Interface
91
  iface = gr.Interface(
92
  fn=verify, # Function to process input
93
- inputs=[gr.inputs.Textbox(label= "Text 1"), gr.inputs.Textbox(label= "Text 2"), gr.inputs.Textbox(label= "Text"), gr.inputs.Textbox(label= "Text 4")], # Input type (Textbox for text)
94
- outputs=gr.outputs.Textbox(), # Output type (Textbox for generated text)
95
  live=True # Optional: To update the result as you type
96
  )
97
 
 
1
+ import API.huggingFaceSpaces.gradio as gr
2
  # from huggingface_hub import InferenceClient
3
  from transformers import AutoModelForSequenceClassification, AutoConfig, AutoTokenizer
4
  import torch
 
90
  # Set up the Gradio Interface
91
  iface = gr.Interface(
92
  fn=verify, # Function to process input
93
+ inputs=[gr.Textbox(label= "Text 1"), gr.Textbox(label= "Text 2"), gr.Textbox(label= "Text"), gr.Textbox(label= "Text 4")], # Input type (Textbox for text)
94
+ outputs=gr.Textbox(), # Output type (Textbox for generated text)
95
  live=True # Optional: To update the result as you type
96
  )
97