Spaces:
Runtime error
Runtime error
TA
commited on
Commit
·
ed40985
1
Parent(s):
21e264e
Update app.py
Browse files
app.py
CHANGED
@@ -1,12 +1,6 @@
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
import requests
|
4 |
-
import gradio as gr
|
5 |
-
import os
|
6 |
-
import requests
|
7 |
-
import gradio as gr
|
8 |
-
import os
|
9 |
-
import requests
|
10 |
import json
|
11 |
|
12 |
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."
|
@@ -15,7 +9,7 @@ EXAMPLE_INPUT = "A Reflective cat between stars."
|
|
15 |
|
16 |
html_temp = """
|
17 |
<div style="position: absolute; top: 0; right: 0;">
|
18 |
-
<img src='https://
|
19 |
</div>
|
20 |
<div style="position: absolute; bottom: 0; left: 0; padding: 10px;">
|
21 |
<p>{EXAMPLE_INPUT}</p>
|
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
import requests
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
import json
|
5 |
|
6 |
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."
|
|
|
9 |
|
10 |
html_temp = """
|
11 |
<div style="position: absolute; top: 0; right: 0;">
|
12 |
+
<img src='https://www.bing.com/images/create/a-black-cat-with-a-shiny2c-reflective-coat-is-float/1-656c50e048424f578a489a4875acd14f?id=%2b0DNSc2C8Sw26e32dIzHZA%3d%3d&view=detailv2&idpp=genimg&idpclose=1&FORM=SYDBIC' alt='Your Image' style='width:100px;height:100px;'>
|
13 |
</div>
|
14 |
<div style="position: absolute; bottom: 0; left: 0; padding: 10px;">
|
15 |
<p>{EXAMPLE_INPUT}</p>
|