Spaces:
Runtime error
Runtime error
update code
Browse files
app.py
CHANGED
@@ -45,7 +45,7 @@ def load_model(values, language):
|
|
45 |
if st.button("Fine-tune your own model", key=4):
|
46 |
st.write("Code available at [GitHub link] + add preview")
|
47 |
else:
|
48 |
-
text = f"""[{model}](
|
49 |
code = f"""
|
50 |
```python
|
51 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
@@ -58,7 +58,7 @@ def load_model(values, language):
|
|
58 |
print(tokenizer.decode(outputs[0]))
|
59 |
```
|
60 |
"""
|
61 |
-
st.
|
62 |
st.markdown(code)
|
63 |
st.write(f"The scores of this model are the following: {values['scores']}")
|
64 |
|
|
|
45 |
if st.button("Fine-tune your own model", key=4):
|
46 |
st.write("Code available at [GitHub link] + add preview")
|
47 |
else:
|
48 |
+
text = f"""[{model}](https://huggingface.co/{model}) is a model trained on the {language.capitalize()} subset of The Stack. Here's how to use it:"""
|
49 |
code = f"""
|
50 |
```python
|
51 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
|
58 |
print(tokenizer.decode(outputs[0]))
|
59 |
```
|
60 |
"""
|
61 |
+
st.markdown(text)
|
62 |
st.markdown(code)
|
63 |
st.write(f"The scores of this model are the following: {values['scores']}")
|
64 |
|