win2win commited on
Commit
3586c36
·
verified ·
1 Parent(s): e245106

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -2,6 +2,12 @@ from fastapi import FastAPI
2
  from transformers import pipeline
3
  import gradio as gr
4
 
 
 
 
 
 
 
5
  app = FastAPI()
6
  model = pipeline("text-classification", model="win2win/3-epochs-classifier-ver2")
7
 
 
2
  from transformers import pipeline
3
  import gradio as gr
4
 
5
+
6
+ import os
7
+
8
+ # Disable xformers warning
9
+ os.environ["USE_XFORMERS"] = "0"
10
+
11
  app = FastAPI()
12
  model = pipeline("text-classification", model="win2win/3-epochs-classifier-ver2")
13