YasirAbdali commited on
Commit
4d3bd41
·
verified ·
1 Parent(s): c6df382

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -10
app.py CHANGED
@@ -8,7 +8,7 @@ tokenizer = AutoTokenizer.from_pretrained(model_name)
8
  model = AutoModelForCausalLM.from_pretrained(model_name)
9
 
10
  # Streamlit app
11
- st.title("Formatted Blog Post Generator")
12
 
13
  # User input
14
  topic = st.text_input("Enter a blog post topic:")
@@ -16,15 +16,7 @@ max_length = st.slider("Maximum length of generated text:", min_value=100, max_v
16
 
17
  if topic:
18
  # Construct a detailed prompt
19
- prompt = f"""Write a well-formatted blog post about {topic}. Use the following structure:
20
-
21
- 1. Start with a main title using a single '#' symbol.
22
- 2. Include an introduction paragraph.
23
- 3. Use '##' for subheadings.
24
-
25
- 5. Separate paragraphs with blank lines.
26
- 6. End with a conclusion paragraph.
27
-
28
  Here's the blog post:
29
 
30
  # """
 
8
  model = AutoModelForCausalLM.from_pretrained(model_name)
9
 
10
  # Streamlit app
11
+ st.title("Blog Post Generator")
12
 
13
  # User input
14
  topic = st.text_input("Enter a blog post topic:")
 
16
 
17
  if topic:
18
  # Construct a detailed prompt
19
+ prompt = f"""Write a well-formatted blog post about {topic}.
 
 
 
 
 
 
 
 
20
  Here's the blog post:
21
 
22
  # """