Spaces:
Running
Running
Commit
·
c56c10b
1
Parent(s):
eb16406
Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,8 @@ def frequencies(preds):
|
|
36 |
fig, ax = plt.subplots(figsize=(6, 6))
|
37 |
ax.pie(x, labels=labels, autopct='%.1f%%')
|
38 |
ax.set_title('Emotion frequencies')
|
39 |
-
|
|
|
40 |
|
41 |
def inference_dataset(file_object, option_list):
|
42 |
tokenizer = AutoTokenizer.from_pretrained(inference_modelpath)
|
|
|
36 |
fig, ax = plt.subplots(figsize=(6, 6))
|
37 |
ax.pie(x, labels=labels, autopct='%.1f%%')
|
38 |
ax.set_title('Emotion frequencies')
|
39 |
+
plt.tight_layout()
|
40 |
+
return plt
|
41 |
|
42 |
def inference_dataset(file_object, option_list):
|
43 |
tokenizer = AutoTokenizer.from_pretrained(inference_modelpath)
|