Spaces:
Runtime error
Runtime error
vvv-knyazeva
commited on
Commit
•
33855af
1
Parent(s):
e3c9c8c
Update pages/answers.py
Browse files- pages/answers.py +8 -0
pages/answers.py
CHANGED
@@ -1,5 +1,13 @@
|
|
1 |
import streamlit as st
|
2 |
from transformers import AutoModelForQuestionAnswering, AutoTokenizer, pipeline
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
model_name = "timpal0l/mdeberta-v3-base-squad2"
|
5 |
model = AutoModelForQuestionAnswering.from_pretrained(model_name)
|
|
|
1 |
import streamlit as st
|
2 |
from transformers import AutoModelForQuestionAnswering, AutoTokenizer, pipeline
|
3 |
+
from streamlit_extras.let_it_rain import rain
|
4 |
+
|
5 |
+
rain(
|
6 |
+
emoji="❓",
|
7 |
+
font_size=54,
|
8 |
+
falling_speed=5,
|
9 |
+
animation_length="infinite",
|
10 |
+
)
|
11 |
|
12 |
model_name = "timpal0l/mdeberta-v3-base-squad2"
|
13 |
model = AutoModelForQuestionAnswering.from_pretrained(model_name)
|