mrbeliever commited on
Commit
09dd78f
1 Parent(s): b304d33

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -11,8 +11,9 @@ print("google-generativeai:", genai.__version__)
11
 
12
  GOOGLE_API_KEY = os.environ.get("GOOGLE_API_KEY")
13
 
14
- TITLE = """<h1 align="center"><a href="https://womener.in">Womener AI</a></h1>"""
15
-
 
16
 
17
  AVATAR_IMAGES = (
18
  None,
@@ -67,7 +68,7 @@ def upload(files: Optional[List[str]], chatbot: CHAT_HISTORY) -> CHAT_HISTORY:
67
 
68
 
69
  # Concatenate the hidden pre-filled text with the user input
70
- prefilled_text = "Enhance this prompt for better AI image generation, Keep the prompt length under 60 words never exceed this limit: "
71
 
72
  def get_prefilled_text(user_input):
73
  return f"{prefilled_text} + {user_input}"
@@ -239,7 +240,9 @@ bot_inputs = [
239
 
240
  with gr.Blocks() as demo:
241
  gr.HTML(TITLE)
242
- with gr.Column():
 
 
243
  google_key_component.render()
244
  chatbot_component.render()
245
  with gr.Row():
@@ -279,6 +282,4 @@ with gr.Blocks() as demo:
279
  queue=False
280
  )
281
 
282
-
283
-
284
  demo.queue(max_size=99).launch(debug=False, show_error=True)
 
11
 
12
  GOOGLE_API_KEY = os.environ.get("GOOGLE_API_KEY")
13
 
14
+ TITLE = """ """
15
+ SUBTITLE = """ """
16
+ DUPLICATE = """"""
17
 
18
  AVATAR_IMAGES = (
19
  None,
 
68
 
69
 
70
  # Concatenate the hidden pre-filled text with the user input
71
+ prefilled_text = "You are a specialized Prompt Generator focused on improving the original text while maintaining its essence. Keep the prompt length under 50 words never exceed this limit"
72
 
73
  def get_prefilled_text(user_input):
74
  return f"{prefilled_text} + {user_input}"
 
240
 
241
  with gr.Blocks() as demo:
242
  gr.HTML(TITLE)
243
+ gr.HTML(SUBTITLE)
244
+ gr.HTML(DUPLICATE)
245
+ with gr.Column():
246
  google_key_component.render()
247
  chatbot_component.render()
248
  with gr.Row():
 
282
  queue=False
283
  )
284
 
 
 
285
  demo.queue(max_size=99).launch(debug=False, show_error=True)