Spaces:
Runtime error
Runtime error
Christian Koch
commited on
Commit
·
0da9df9
1
Parent(s):
32ee8bd
remove secrets
Browse files
app.py
CHANGED
@@ -10,10 +10,6 @@ tokenizer = AutoTokenizer.from_pretrained("google/mt5-small")
|
|
10 |
|
11 |
model = AutoModelForSeq2SeqLM.from_pretrained("google/mt5-small")
|
12 |
|
13 |
-
# Question Generator Variables
|
14 |
-
ids = {'mt5-small': st.secrets['small'],
|
15 |
-
'mt5-base': st.secrets['base']}
|
16 |
-
|
17 |
|
18 |
st.set_page_config(layout="centered")
|
19 |
st.title('Question Generator by Eddevs')
|
@@ -27,13 +23,6 @@ if select == "Question Generator":
|
|
27 |
# left_column.selectbox('Type', ['Question Generator', 'Paraphrasing'])
|
28 |
#st.selectbox('Model', ['T5', 'GPT Neo-X'])
|
29 |
|
30 |
-
# Download all models from drive
|
31 |
-
# q.download_models(ids)
|
32 |
-
|
33 |
-
# Model selection
|
34 |
-
model_path = st.selectbox('', options=[k for k in ids], index=1, help='Model to use. ')
|
35 |
-
|
36 |
-
|
37 |
text_input = st.text_area("Input Text")
|
38 |
|
39 |
submitted = st.form_submit_button("Generate")
|
|
|
10 |
|
11 |
model = AutoModelForSeq2SeqLM.from_pretrained("google/mt5-small")
|
12 |
|
|
|
|
|
|
|
|
|
13 |
|
14 |
st.set_page_config(layout="centered")
|
15 |
st.title('Question Generator by Eddevs')
|
|
|
23 |
# left_column.selectbox('Type', ['Question Generator', 'Paraphrasing'])
|
24 |
#st.selectbox('Model', ['T5', 'GPT Neo-X'])
|
25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
text_input = st.text_area("Input Text")
|
27 |
|
28 |
submitted = st.form_submit_button("Generate")
|