Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -65,11 +65,10 @@ st.markdown(
|
|
65 |
"""Thai GPT-2 demo. Part of the [Huggingface JAX/Flax event](https://discuss.huggingface.co/t/open-to-the-community-community-week-using-jax-flax-for-nlp-cv/)."""
|
66 |
)
|
67 |
model_name = st.selectbox('Model', (['GPT-2 Base']))
|
68 |
-
|
|
|
69 |
if prompt == "Custom":
|
70 |
prompt_box = "Enter your text here"
|
71 |
-
else:
|
72 |
-
prompt_box = random.choice(PROMPT_LIST[prompt])
|
73 |
text = st.text_area("Enter text", prompt_box)
|
74 |
if st.button("Run"):
|
75 |
with st.spinner(text="Getting results..."):
|
|
|
65 |
"""Thai GPT-2 demo. Part of the [Huggingface JAX/Flax event](https://discuss.huggingface.co/t/open-to-the-community-community-week-using-jax-flax-for-nlp-cv/)."""
|
66 |
)
|
67 |
model_name = st.selectbox('Model', (['GPT-2 Base']))
|
68 |
+
hello = ['Custom', 'Yellow']
|
69 |
+
prompt = st.selectbox('Prompt', options = hello)
|
70 |
if prompt == "Custom":
|
71 |
prompt_box = "Enter your text here"
|
|
|
|
|
72 |
text = st.text_area("Enter text", prompt_box)
|
73 |
if st.button("Run"):
|
74 |
with st.spinner(text="Getting results..."):
|