vanessbut commited on
Commit
17a327f
·
1 Parent(s): 8f5b334

Добавлена гистограма.

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -26,8 +26,7 @@ st.markdown("<p style=\"text-align:center\"><img width=100% src='https://c.tenor
26
  #st.markdown("#### Title:")
27
  title = st.text_area("Title:", value="How to cook a neural network", height=16, help="Title of the article")
28
  abstract = st.text_area("Abstract:",
29
- value="""
30
- My dad fits hellish models in general.
31
  Well, this is about an average recipe, because there are a lot of variations.
32
  The model is taken, it is not finetuned, finetuning is not about my dad.
33
  He takes this model, dumps it into the tensorboard and starts frying it.
@@ -81,11 +80,11 @@ if not text is None and len(text) > 0:
81
  #st.markdown(f"{keywords}")
82
 
83
  # График важности слов.
84
- fig, ax = plt.subplots()
85
  ax.set_title("Ключевые слова в порядке важности")
86
 
87
- bar_width = 0.35
88
- indexes = np.arange(len(labels))
89
  ax.barh(indexes, scores, bar_width)
90
  plt.yticks(indexes, labels=labels)
91
 
 
26
  #st.markdown("#### Title:")
27
  title = st.text_area("Title:", value="How to cook a neural network", height=16, help="Title of the article")
28
  abstract = st.text_area("Abstract:",
29
+ value="""My dad fits hellish models in general.
 
30
  Well, this is about an average recipe, because there are a lot of variations.
31
  The model is taken, it is not finetuned, finetuning is not about my dad.
32
  He takes this model, dumps it into the tensorboard and starts frying it.
 
80
  #st.markdown(f"{keywords}")
81
 
82
  # График важности слов.
83
+ fig, ax = plt.subplots(figsize=(4, 16))
84
  ax.set_title("Ключевые слова в порядке важности")
85
 
86
+ bar_width = 0.75
87
+ indexes = -np.arange(len(labels))
88
  ax.barh(indexes, scores, bar_width)
89
  plt.yticks(indexes, labels=labels)
90