Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -13,28 +13,14 @@ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
13 |
|
14 |
st.text('''Check out this other space: https://huggingface.co/spaces/BigSalmon/GPT2Space''')
|
15 |
|
16 |
-
st.text('''How To Make Prompt:
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
informal english: chrome extensions can make doing regular tasks much easier to get done.
|
26 |
-
Translated into the Style of Abraham Lincoln: chrome extensions ( yield the boon of time-saving convenience / ( expedite the ability to / unlock the means to more readily ) accomplish everyday tasks / turbocharges the velocity with which one can conduct their obligations ).
|
27 |
-
|
28 |
-
informal english: broadband is finally expanding to rural areas, a great development that will thrust them into modern life.
|
29 |
-
Translated into the Style of Abraham Lincoln: broadband is ( ( finally / at last / after years of delay ) arriving in remote locations / springing to life in far-flung outposts / inching into even the most backwater corners of the nation ) that will ( hasten their transition into the modern age / leap-frog them into the twenty-first century / facilitate their integration into contemporary life ).
|
30 |
-
|
31 |
-
informal english: national parks are a big part of the us culture.
|
32 |
-
Translated into the Style of Abraham Lincoln: the culture of the united states is ( inextricably ( bound up with / molded by / enriched by / enlivened by ) its ( serene / picturesque / pristine / breathtaking ) national parks ).
|
33 |
-
|
34 |
-
informal english: corn fields are all across illinois, visible once you leave chicago.
|
35 |
-
Translated into the Style of Abraham Lincoln: corn fields ( permeate illinois / span the state of illinois / ( occupy / persist in ) all corners of illinois / line the horizon of illinois / envelop the landscape of illinois ), manifesting themselves visibly as one ventures beyond chicago.
|
36 |
-
|
37 |
-
informal english:''')
|
38 |
|
39 |
@st.cache(allow_output_mutation=True)
|
40 |
def get_model():
|
|
|
13 |
|
14 |
st.text('''Check out this other space: https://huggingface.co/spaces/BigSalmon/GPT2Space''')
|
15 |
|
16 |
+
st.text('''How To Make Prompt: https://huggingface.co/BigSalmon/DefinitionsSynonyms3
|
17 |
+
|
18 |
+
part of speech- verb
|
19 |
+
definition: grow less in intensity or degree
|
20 |
+
ex. rather than leave immediately and be drenched, they waited for the storm to ________
|
21 |
+
synonyms: subside; moderate; decrease
|
22 |
+
antonyms: increase
|
23 |
+
word: abate''')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
|
25 |
@st.cache(allow_output_mutation=True)
|
26 |
def get_model():
|