loubnabnl HF staff commited on
Commit
f6c8688
1 Parent(s): 8d9fca0

update code

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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}](hf.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,7 +58,7 @@ def load_model(values, language):
58
  print(tokenizer.decode(outputs[0]))
59
  ```
60
  """
61
- st.write(text)
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