Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,14 +22,19 @@ def get_image(prompt,textbox):
|
|
| 22 |
img = Image.open('img.jpg')
|
| 23 |
return img
|
| 24 |
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
|
| 35 |
|
|
|
|
| 22 |
img = Image.open('img.jpg')
|
| 23 |
return img
|
| 24 |
|
| 25 |
+
title = "Please Provide API-Key and Enter your Prompt"
|
| 26 |
+
description = """
|
| 27 |
+
Provide OpenAI API Key, select your model
|
| 28 |
+
<img src = "https://upload.wikimedia.org/wikipedia/commons/4/4d/OpenAI_Logo.svg" width=300px>
|
| 29 |
+
"""
|
| 30 |
+
|
| 31 |
+
gr.Interface(
|
| 32 |
+
get_image,
|
| 33 |
+
[
|
| 34 |
+
gr.Textbox(label="Enter your Prompt",),
|
| 35 |
+
gr.Textbox(label="Enter your API-Key", placeholder="API-Key", lines=1)
|
| 36 |
+
],
|
| 37 |
+
outputs= gr.Image(type='pil')
|
| 38 |
+
).launch()
|
| 39 |
|
| 40 |
|