christinac commited on
Commit
0fc04c4
·
1 Parent(s): a937ac9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +25 -4
app.py CHANGED
@@ -43,21 +43,42 @@ def drawImage(text, text_size, prompt, strength, guidance_scale): #(text, text_s
43
 
44
  #demo = gr.Series(drawImage,newImage)
45
 
 
 
46
  demo = gr.Interface(
47
  title="this will be very slow since it's on CPU! msg me if you would like to try",
48
  description="turn on acceleration from7-9,google form",
49
- #theme='huggingface',
50
  css="""
51
- body {system-ui, Helvetica, Arial, sans-serif}
52
- """,
53
  fn=drawImage,
54
  inputs=[
55
  gr.Textbox(placeholder="shift + enter for new line",label="what do you want to say?"),
56
- #"file"
57
  gr.Number(label="text size",value=240),
58
  gr.Textbox(placeholder="eg. imagery, art style, materials, emotions",label="how does your message look and feel?"), #figure out models in series
59
  gr.Slider(label="strength (how much noise will be added to the input image)",minimum=0, maximum=1, step=0.01, value=0.7),
60
  gr.Slider(label="guidance scale (how much the image generation follows the prompt)",value=15, maximum=20),
61
  ],
62
  outputs="image")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
63
  demo.launch()
 
43
 
44
  #demo = gr.Series(drawImage,newImage)
45
 
46
+ #blocks = gr.Blocks()
47
+
48
  demo = gr.Interface(
49
  title="this will be very slow since it's on CPU! msg me if you would like to try",
50
  description="turn on acceleration from7-9,google form",
51
+ ##theme='huggingface',
52
  css="""
53
+ body {font-family: system-ui, Helvetica, Arial, sans-serif}
54
+ #""",
55
  fn=drawImage,
56
  inputs=[
57
  gr.Textbox(placeholder="shift + enter for new line",label="what do you want to say?"),
58
+ ##"file"
59
  gr.Number(label="text size",value=240),
60
  gr.Textbox(placeholder="eg. imagery, art style, materials, emotions",label="how does your message look and feel?"), #figure out models in series
61
  gr.Slider(label="strength (how much noise will be added to the input image)",minimum=0, maximum=1, step=0.01, value=0.7),
62
  gr.Slider(label="guidance scale (how much the image generation follows the prompt)",value=15, maximum=20),
63
  ],
64
  outputs="image")
65
+
66
+ #with blocks (css=".gradio-container {background-color: red}")as demo:
67
+ #title="this will be very slow since it's on CPU! msg me if you would like to try",
68
+ #description="turn on acceleration from7-9,google form",
69
+ ##theme='huggingface',
70
+ #css="""
71
+ #body {font-family: system-ui, Helvetica, Arial, sans-serif}
72
+ #""",
73
+ #fn=drawImage,
74
+ #inputs=[
75
+ #gr.Textbox(placeholder="shift + enter for new line",label="what do you want to say?"),
76
+ ##"file"
77
+ #gr.Number(label="text size",value=240),
78
+ #gr.Textbox(placeholder="eg. imagery, art style, materials, emotions",label="how does your message look and feel?"), #figure out models in series
79
+ #gr.Slider(label="strength (how much noise will be added to the input image)",minimum=0, maximum=1, step=0.01, value=0.7),
80
+ #gr.Slider(label="guidance scale (how much the image generation follows the prompt)",value=15, maximum=20),
81
+ #],
82
+ #outputs="image"
83
+
84
  demo.launch()