Update app.py
Browse files
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.
|
94 |
-
outputs=gr.
|
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 |
|