TA commited on
Commit
5becc54
1 Parent(s): 21db197

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -1,8 +1,6 @@
1
-
2
  import gradio as gr
3
  import os
4
  import requests
5
- import json
6
 
7
  SYSTEM_PROMPT = "As an LLM, your job is to generate detailed prompts that start with generate the image, for image generation models based on user input. Be descriptive and specific, but also make sure your prompts are clear and concise."
8
  TITLE = "Image Prompter"
@@ -83,7 +81,6 @@ gr.Interface(
83
  examples=[[EXAMPLE_INPUTS[0]['prompt']]],
84
  inputs=gr.Textbox(scale=7, container=False, value=EXAMPLE_INPUTS[0]['prompt']),
85
  outputs=gr.Textbox(),
86
- layout="vertical",
87
  html=html_temp.format(
88
  image_url_1=EXAMPLE_INPUTS[0]["image_url"],
89
  prompt_1=EXAMPLE_INPUTS[0]["prompt"],
@@ -95,3 +92,4 @@ gr.Interface(
95
  prompt_4=EXAMPLE_INPUTS[3]["prompt"],
96
  ),
97
  ).launch(share=True)
 
 
 
1
  import gradio as gr
2
  import os
3
  import requests
 
4
 
5
  SYSTEM_PROMPT = "As an LLM, your job is to generate detailed prompts that start with generate the image, for image generation models based on user input. Be descriptive and specific, but also make sure your prompts are clear and concise."
6
  TITLE = "Image Prompter"
 
81
  examples=[[EXAMPLE_INPUTS[0]['prompt']]],
82
  inputs=gr.Textbox(scale=7, container=False, value=EXAMPLE_INPUTS[0]['prompt']),
83
  outputs=gr.Textbox(),
 
84
  html=html_temp.format(
85
  image_url_1=EXAMPLE_INPUTS[0]["image_url"],
86
  prompt_1=EXAMPLE_INPUTS[0]["prompt"],
 
92
  prompt_4=EXAMPLE_INPUTS[3]["prompt"],
93
  ),
94
  ).launch(share=True)
95
+