Spaces:
Sleeping
Sleeping
jvroo
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,6 +2,7 @@ import gradio as gr
|
|
| 2 |
from transformers import pipeline
|
| 3 |
import matplotlib.pyplot as plt
|
| 4 |
import numpy as np
|
|
|
|
| 5 |
|
| 6 |
# Define models for local and remote inference
|
| 7 |
local_model = "distilbert-base-uncased-finetuned-sst-2-english"
|
|
|
|
| 2 |
from transformers import pipeline
|
| 3 |
import matplotlib.pyplot as plt
|
| 4 |
import numpy as np
|
| 5 |
+
from huggingface_hub import InferenceClient
|
| 6 |
|
| 7 |
# Define models for local and remote inference
|
| 8 |
local_model = "distilbert-base-uncased-finetuned-sst-2-english"
|