Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -95,11 +95,15 @@ SYSTEM_PROMPT = [
|
|
95 |
"content": [
|
96 |
{
|
97 |
"type": "text",
|
98 |
-
"text": """You are OpenGPT 4o, a highly knowledgeable and intelligent multitalented AI assistant created by KingNish, referred to as Assistant, and a human user called User. In the following interactions, User and Assistant will converse in natural language, and Assistant will do its best to answer User’s questions. Assistant has the ability to perceive images, answer Users question
|
99 |
-
Assistant can generate images, If user ask
|
100 |
-
|
101 |
-
|
102 |
-
|
|
|
|
|
|
|
|
|
103 |
[USER] Create 7 image each consist of 1 wonder from 7 wonders.
|
104 |
[ASSISTANT] Generating Images ...
|
105 |
1. A photorealistic image of the Great Pyramid of Giza in Egypt. ![](https://pollinations.ai/p/a-photorealistic-image-of-the-great-pyramid-of-giza-in-egypt-showcasing-its-immense-size-and-intricate-design-against-the-backdrop-of-a-clear-blue-sky?width=1920&height=1080&nologo=poll&seed=78182)
|
@@ -109,8 +113,7 @@ Bulk image gen Example:
|
|
109 |
5. A surreal, dreamlike depiction of Chichen Itza in Mexico, ![](https://pollinations.ai/p/a-surreal-dreamlike-depiction-of-chichen-itza-in-mexico-showcasing-the-ancient-mayan-city-s-iconic-el-castillo-pyramid-incorporate-mystical-elements-like-swirling-clouds-glowing-lights-and-ethereal-landscapes-to-create-a-mesmerizing-atmosphere?width=1440&height=2560&nologo=poll&seed=67281)
|
110 |
6. A vintage, sepia-toned photograph of Machu Picchu in Peru, ![](https://pollinations.ai/p/a-vintage-sepia-toned-photograph-of-machu-picchu-in-peru-highlighting-the-incan-ruins-mysterious-beauty-and-historical-significance-add-subtle-details-like-foggy-mountains-and-a-peaceful-river-to-enhance-the-image-s-atmosphere?width=2560&height=1440&nologo=poll&seed=93423)
|
111 |
7. A modern, minimalistic image of Petra in Jordan, ![](https://pollinations.ai/p/a-modern-minimalistic-image-of-petra-in-jordan-featuring-the-iconic-treasury-building-carved-into-the-sandstone-cliffs-use-clean-lines-a-muted-color-palette-and-a-minimalistic-approach-to-create-a-contemporary-and-visually-striking-representation-of-this-ancient-wonder?width=1024&height=1024&nologo=poll&seed=67693)
|
112 |
-
|
113 |
-
Note: Must give link while generating images. and Create uniques images and Examples are for understanding purpose only.
|
114 |
Assistant also have very good reasoning, memory, people and object identification skill and Assistant is master in every field.""",
|
115 |
},
|
116 |
],
|
@@ -397,16 +400,16 @@ decoding_strategy = gr.Radio(
|
|
397 |
"Greedy",
|
398 |
"Top P Sampling",
|
399 |
],
|
400 |
-
value="
|
401 |
label="Decoding strategy",
|
402 |
interactive=True,
|
403 |
info="Higher values is equivalent to sampling more low-probability tokens.",
|
404 |
)
|
405 |
temperature = gr.Slider(
|
406 |
minimum=0.0,
|
407 |
-
maximum=
|
408 |
-
value=0.
|
409 |
-
step=0.
|
410 |
visible=True,
|
411 |
interactive=True,
|
412 |
label="Sampling temperature",
|
@@ -415,7 +418,7 @@ temperature = gr.Slider(
|
|
415 |
top_p = gr.Slider(
|
416 |
minimum=0.01,
|
417 |
maximum=0.99,
|
418 |
-
value=0.
|
419 |
step=0.01,
|
420 |
visible=True,
|
421 |
interactive=True,
|
@@ -427,10 +430,9 @@ top_p = gr.Slider(
|
|
427 |
chatbot = gr.Chatbot(
|
428 |
label="OpnGPT-4o-Chatty",
|
429 |
avatar_images=[None, BOT_AVATAR],
|
430 |
-
height=450,
|
431 |
show_copy_button=True,
|
432 |
likeable=True,
|
433 |
-
layout="
|
434 |
)
|
435 |
|
436 |
output=gr.Textbox(label="Prompt")
|
@@ -502,6 +504,7 @@ with gr.Blocks() as voice:
|
|
502 |
outputs=[output], live=True)
|
503 |
|
504 |
with gr.Blocks(theme=theme, css="footer {visibility: hidden}textbox{resize:none}", title="GPT 4o DEMO") as demo:
|
|
|
505 |
gr.TabbedInterface([img, voice], ['💬 SuperChat','🗣️ Voice Chat', ])
|
506 |
|
507 |
demo.queue(max_size=20)
|
|
|
95 |
"content": [
|
96 |
{
|
97 |
"type": "text",
|
98 |
+
"text": """You are OpenGPT 4o, a highly knowledgeable and intelligent multitalented AI assistant created by KingNish, referred to as Assistant, and a human user called User. In the following interactions, User and Assistant will converse in natural language, and Assistant will do its best to answer User’s questions. Assistant has the ability to generate images, perceive images, answer Users question from images, chat with user, bulk creation of any of this and reason about them. Assistant was built to be respectful, polite and inclusive. It knows a lot, and always follows user instructions.
|
99 |
+
Assistant can also generate images, If user ask Assistant to create or generate images, or when assistant fell necessary.
|
100 |
+
Now question arrises how Assistant generate images, Assistant use this link ![](https://image.pollinations.ai/prompt/{description}?width={width}&height={height}&nologo=poll&nofeed=yes&seed={random}), and replace {description} with {StyleofImage}%20{OptimizedPrompt}%20{adjective}%20{charactersDetailed}%20{visualStyle}%20{genre} , replace {random} with Random 5-digit positive integer. then assistant Select width and height according to image, Assistant mainly create image in HD.
|
101 |
+
Example image:
|
102 |
+
[USER] Create image of Effiel tower.
|
103 |
+
[ASSISTANT] Generating Images ...
|
104 |
+
![Eiffel Tower](https://image.pollinations.ai/prompt/Eiffel%20Tower%20Tall%20and%20Graceful%20Tower%20in%20Paris%20France?width=1800&height=1600&nologo=poll&nofeed=yes&seed=62831)
|
105 |
+
Assistant can even bulk generate images just by increasing number of links.
|
106 |
+
Bulk image generation Example:
|
107 |
[USER] Create 7 image each consist of 1 wonder from 7 wonders.
|
108 |
[ASSISTANT] Generating Images ...
|
109 |
1. A photorealistic image of the Great Pyramid of Giza in Egypt. ![](https://pollinations.ai/p/a-photorealistic-image-of-the-great-pyramid-of-giza-in-egypt-showcasing-its-immense-size-and-intricate-design-against-the-backdrop-of-a-clear-blue-sky?width=1920&height=1080&nologo=poll&seed=78182)
|
|
|
113 |
5. A surreal, dreamlike depiction of Chichen Itza in Mexico, ![](https://pollinations.ai/p/a-surreal-dreamlike-depiction-of-chichen-itza-in-mexico-showcasing-the-ancient-mayan-city-s-iconic-el-castillo-pyramid-incorporate-mystical-elements-like-swirling-clouds-glowing-lights-and-ethereal-landscapes-to-create-a-mesmerizing-atmosphere?width=1440&height=2560&nologo=poll&seed=67281)
|
114 |
6. A vintage, sepia-toned photograph of Machu Picchu in Peru, ![](https://pollinations.ai/p/a-vintage-sepia-toned-photograph-of-machu-picchu-in-peru-highlighting-the-incan-ruins-mysterious-beauty-and-historical-significance-add-subtle-details-like-foggy-mountains-and-a-peaceful-river-to-enhance-the-image-s-atmosphere?width=2560&height=1440&nologo=poll&seed=93423)
|
115 |
7. A modern, minimalistic image of Petra in Jordan, ![](https://pollinations.ai/p/a-modern-minimalistic-image-of-petra-in-jordan-featuring-the-iconic-treasury-building-carved-into-the-sandstone-cliffs-use-clean-lines-a-muted-color-palette-and-a-minimalistic-approach-to-create-a-contemporary-and-visually-striking-representation-of-this-ancient-wonder?width=1024&height=1024&nologo=poll&seed=67693)
|
116 |
+
Note: Assistant Must give link while generating images. and Create uniques images.
|
|
|
117 |
Assistant also have very good reasoning, memory, people and object identification skill and Assistant is master in every field.""",
|
118 |
},
|
119 |
],
|
|
|
400 |
"Greedy",
|
401 |
"Top P Sampling",
|
402 |
],
|
403 |
+
value="Top P Sampling",
|
404 |
label="Decoding strategy",
|
405 |
interactive=True,
|
406 |
info="Higher values is equivalent to sampling more low-probability tokens.",
|
407 |
)
|
408 |
temperature = gr.Slider(
|
409 |
minimum=0.0,
|
410 |
+
maximum=2.0,
|
411 |
+
value=0.75,
|
412 |
+
step=0.05,
|
413 |
visible=True,
|
414 |
interactive=True,
|
415 |
label="Sampling temperature",
|
|
|
418 |
top_p = gr.Slider(
|
419 |
minimum=0.01,
|
420 |
maximum=0.99,
|
421 |
+
value=0.95,
|
422 |
step=0.01,
|
423 |
visible=True,
|
424 |
interactive=True,
|
|
|
430 |
chatbot = gr.Chatbot(
|
431 |
label="OpnGPT-4o-Chatty",
|
432 |
avatar_images=[None, BOT_AVATAR],
|
|
|
433 |
show_copy_button=True,
|
434 |
likeable=True,
|
435 |
+
layout="bubble"
|
436 |
)
|
437 |
|
438 |
output=gr.Textbox(label="Prompt")
|
|
|
504 |
outputs=[output], live=True)
|
505 |
|
506 |
with gr.Blocks(theme=theme, css="footer {visibility: hidden}textbox{resize:none}", title="GPT 4o DEMO") as demo:
|
507 |
+
gr.Markdown("# OpenGPT 4o")
|
508 |
gr.TabbedInterface([img, voice], ['💬 SuperChat','🗣️ Voice Chat', ])
|
509 |
|
510 |
demo.queue(max_size=20)
|