Spaces:
Runtime error
Runtime error
birgermoell
commited on
Commit
•
2b2e35b
1
Parent(s):
344bac3
Updated model
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ tokenizer = AutoTokenizer.from_pretrained("flax-community/swe-gpt-wiki")
|
|
10 |
model = AutoModelWithLMHead.from_pretrained("flax-community/swe-gpt-wiki")
|
11 |
|
12 |
generator = pipeline('text-generation', model=model, tokenizer=tokenizer)
|
13 |
-
set_seed(42)
|
14 |
|
15 |
|
16 |
#===========================================#
|
@@ -22,7 +22,7 @@ desc = "En svensk GPT-modell tränad på wikipedia. Fyll i text i fältet nedanf
|
|
22 |
|
23 |
st.write(desc)
|
24 |
|
25 |
-
num_sentences = st.number_input('Number of Characters', min_value=1, max_value=150, value=
|
26 |
user_input = st.text_input('Fyll i text att generera ifrån')
|
27 |
|
28 |
|
|
|
10 |
model = AutoModelWithLMHead.from_pretrained("flax-community/swe-gpt-wiki")
|
11 |
|
12 |
generator = pipeline('text-generation', model=model, tokenizer=tokenizer)
|
13 |
+
# set_seed(42)
|
14 |
|
15 |
|
16 |
#===========================================#
|
|
|
22 |
|
23 |
st.write(desc)
|
24 |
|
25 |
+
num_sentences = st.number_input('Number of Characters', min_value=1, max_value=150, value=75)
|
26 |
user_input = st.text_input('Fyll i text att generera ifrån')
|
27 |
|
28 |
|