CineAI commited on
Commit
f5d0285
Β·
verified Β·
1 Parent(s): 5ee5266

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -66,6 +66,8 @@ def agent_init(
66
 
67
  if additional_info is None:
68
  additional_info = ""
 
 
69
 
70
  if additional_info is None and cast_or_year_of_release is None:
71
  cast_or_year_of_release = ""
@@ -106,8 +108,8 @@ def main():
106
  content_type = st.selectbox("Content Type", ["film", "TV Show"], index=0) # Film is default
107
  additional_info_expander = st.expander("Optional Details: Cast & Year of Release", expanded=False)
108
  with additional_info_expander:
109
- additional_info = st.text_input("Additional Information (e.g., plot points, genre)", placeholder="e.g., set in space, sci-fi")
110
- cast_or_year_of_release = st.text_input("Cast or Year of Release (e.g., starring Tom Hanks, released in 2010)", placeholder="e.g., starring Leonardo DiCaprio")
111
 
112
  search_button = st.button("πŸ” Search for Film/Show", use_container_width=True)
113
 
@@ -136,11 +138,8 @@ def main():
136
  else:
137
  st.info("Enter your search criteria and click 'Search for Film/Show' to begin.")
138
 
139
- # Footer with Agent Details (optional, for extra polish)
140
  st.markdown("---")
141
  st.caption("Powered by Smolagents by Hugging Face")
142
- # st.caption("System Prompt (for reference):")
143
- # st.code(system_prompt, language='python') # Show system prompt in a code block for transparency
144
 
145
 
146
  if __name__ == "__main__":
 
66
 
67
  if additional_info is None:
68
  additional_info = ""
69
+ else:
70
+ additional_info = "and " + additional_info
71
 
72
  if additional_info is None and cast_or_year_of_release is None:
73
  cast_or_year_of_release = ""
 
108
  content_type = st.selectbox("Content Type", ["film", "TV Show"], index=0) # Film is default
109
  additional_info_expander = st.expander("Optional Details: Cast & Year of Release", expanded=False)
110
  with additional_info_expander:
111
+ additional_info = st.text_input("Additional Information (e.g., the cast/the year of release)", placeholder="e.g., the cast")
112
+ cast_or_year_of_release = st.text_input("Cast or Year of Release (e.g., The film stars Ryan Reynolds/The TV show was released in 2009.)", placeholder="e.g., The film stars Ryan Reynolds")
113
 
114
  search_button = st.button("πŸ” Search for Film/Show", use_container_width=True)
115
 
 
138
  else:
139
  st.info("Enter your search criteria and click 'Search for Film/Show' to begin.")
140
 
 
141
  st.markdown("---")
142
  st.caption("Powered by Smolagents by Hugging Face")
 
 
143
 
144
 
145
  if __name__ == "__main__":