msaifee commited on
Commit
1de356a
·
1 Parent(s): 65abfbd

String quotes changes for Huggingface

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -98,7 +98,7 @@ def search_web(state: BlogState):
98
  search_tool = TavilySearchResults(max_results=2)
99
 
100
  # Create search query with date to get recent news
101
- query = f"Latest data on {state["topic"]}"
102
 
103
  # Execute search
104
  search_results = search_tool.invoke({"query": query})
@@ -124,7 +124,7 @@ def search_web(state: BlogState):
124
 
125
 
126
  def generate_content(state: BlogState):
127
- prompt = f"""Write a comprehensive blog post titled "{state["title"]}" and based on the web search results {state["search_results"]} with:
128
  1. Engaging introduction with hook
129
  2. 3-5 subheadings with detailed content
130
  3. Practical examples/statistics
 
98
  search_tool = TavilySearchResults(max_results=2)
99
 
100
  # Create search query with date to get recent news
101
+ query = f"Latest data on {state['topic']}"
102
 
103
  # Execute search
104
  search_results = search_tool.invoke({"query": query})
 
124
 
125
 
126
  def generate_content(state: BlogState):
127
+ prompt = f"""Write a comprehensive blog post titled "{state['title']}" and based on the web search results {state['search_results']} with:
128
  1. Engaging introduction with hook
129
  2. 3-5 subheadings with detailed content
130
  3. Practical examples/statistics