jitesh commited on
Commit
5c60a64
1 Parent(s): be5bcd1

Adds random first lines

Browse files
Files changed (1) hide show
  1. app.py +11 -2
app.py CHANGED
@@ -2,7 +2,7 @@ import streamlit as st
2
  from story_gen import StoryGenerator
3
  import plotly.figure_factory as ff
4
  import plotly.express as px
5
-
6
  gen = StoryGenerator()
7
 
8
  st.set_page_config(page_title='Storytelling ' +
@@ -20,7 +20,16 @@ mode = container_mode.radio(
20
  "Select your mode",
21
  ('Create Statistics', 'Play Storytelling'), index=0)
22
  story_till_now = container_param.text_input(
23
- label='First Sentence', value='Hello, I\'m a language model,')
 
 
 
 
 
 
 
 
 
24
 
25
  num_generation = container_param.slider(
26
  label='Number of generation', min_value=1, max_value=100, value=3, step=1)
 
2
  from story_gen import StoryGenerator
3
  import plotly.figure_factory as ff
4
  import plotly.express as px
5
+ import random
6
  gen = StoryGenerator()
7
 
8
  st.set_page_config(page_title='Storytelling ' +
 
20
  "Select your mode",
21
  ('Create Statistics', 'Play Storytelling'), index=0)
22
  story_till_now = container_param.text_input(
23
+ label='First Sentence',
24
+ value=random.choice([
25
+ 'Hello, I\'m a language model,',
26
+ 'So I suppose you want to ask me how I did it.',
27
+ 'I always wanted to be a giraffe - until that night.',
28
+ 'My first tutor was a dragon with a terrible sense of humor.',
29
+ 'Doctors told her she could never diet again.',
30
+ 'Memory is all around us, as well as within.',
31
+
32
+ ]))
33
 
34
  num_generation = container_param.slider(
35
  label='Number of generation', min_value=1, max_value=100, value=3, step=1)