changgun commited on
Commit
b2b5d47
1 Parent(s): 6279a4d
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -11,6 +11,7 @@ def test_v01():
11
  top_k = st.sidebar.slider("Top-k", min_value = 0, max_value=5, value = 0)
12
  top_p = st.sidebar.slider("Top-p", min_value = 0.0, max_value=1.0, step = 0.05, value = 0.9)
13
  num_return_sequences = st.sidebar.number_input('Number of Return Sequences', min_value=1, max_value=5, value=1, step=1)
 
14
 
15
  def test_v02():
16
  dataset = load_dataset("merve/poetry", streaming=True)
@@ -21,5 +22,6 @@ def test_v02():
21
  sns.catplot(x="author", data=df, kind="count", aspect = 4)
22
  plt.xticks(rotation=90)
23
  st.pyplot()
 
24
 
25
- test_v01()
 
11
  top_k = st.sidebar.slider("Top-k", min_value = 0, max_value=5, value = 0)
12
  top_p = st.sidebar.slider("Top-p", min_value = 0.0, max_value=1.0, step = 0.05, value = 0.9)
13
  num_return_sequences = st.sidebar.number_input('Number of Return Sequences', min_value=1, max_value=5, value=1, step=1)
14
+ return num_return_sequences
15
 
16
  def test_v02():
17
  dataset = load_dataset("merve/poetry", streaming=True)
 
22
  sns.catplot(x="author", data=df, kind="count", aspect = 4)
23
  plt.xticks(rotation=90)
24
  st.pyplot()
25
+ return st
26
 
27
+ test_v02()