Spaces:
Sleeping
Sleeping
app done
Browse files
app.py
CHANGED
@@ -1,6 +1,5 @@
|
|
1 |
import gradio as gr
|
2 |
from transformers import AutoModelForSequenceClassification
|
3 |
-
from transformers import TFAutoModelForSequenceClassification
|
4 |
from transformers import AutoTokenizer, AutoConfig
|
5 |
import numpy as np
|
6 |
from scipy.special import softmax
|
@@ -56,4 +55,4 @@ demo = gr.Interface(
|
|
56 |
description="This Application assesses if a twitter post relating to vaccinations is positive, neutral, or negative.", )
|
57 |
|
58 |
if __name__ == "__main__":
|
59 |
-
demo.launch()
|
|
|
1 |
import gradio as gr
|
2 |
from transformers import AutoModelForSequenceClassification
|
|
|
3 |
from transformers import AutoTokenizer, AutoConfig
|
4 |
import numpy as np
|
5 |
from scipy.special import softmax
|
|
|
55 |
description="This Application assesses if a twitter post relating to vaccinations is positive, neutral, or negative.", )
|
56 |
|
57 |
if __name__ == "__main__":
|
58 |
+
demo.launch(server_name="0.0.0.0", server_port=7860) # 8080
|