dhanishetty commited on
Commit
ee74194
1 Parent(s): a0c63d9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -9
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
- gr.Interface(fn=get_image,
28
- [
29
- gr.Textbox(label="Enter your Prompt",),
30
- gr.Textbox(label="Enter your API-Key", placeholder="API-Key", lines=1)
31
- ]
32
- , outputs= gr.Image(type='pil')
33
- ).launch()
 
 
 
 
 
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