DigiP-AI commited on
Commit
1555e70
·
verified ·
1 Parent(s): 603b913

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -8,6 +8,10 @@ import base64
8
  import random
9
  import os
10
  from transforms import RGBTransform # from source code mentioned above
 
 
 
 
11
 
12
  HF_TOKEN = os.environ.get("HF_TOKEN") if os.environ.get("HF_TOKEN") else None # If private or gated models aren't used, ENV setting is unnecessary.
13
  server_timeout = 100
@@ -171,7 +175,7 @@ height:100%;
171
  min-width:200px;
172
  }
173
  """
174
- with gr.Blocks(css=css, theme="Nymbo/Nymbo_Theme") as app:
175
  with gr.Row():
176
  with gr.Column():
177
  inp=gr.Textbox(label="Prompt")
 
8
  import random
9
  import os
10
  from transforms import RGBTransform # from source code mentioned above
11
+ from theme import theme
12
+ from fastapi import FastAPI
13
+
14
+ app = FastAPI()
15
 
16
  HF_TOKEN = os.environ.get("HF_TOKEN") if os.environ.get("HF_TOKEN") else None # If private or gated models aren't used, ENV setting is unnecessary.
17
  server_timeout = 100
 
175
  min-width:200px;
176
  }
177
  """
178
+ with gr.Blocks(css=css, theme=theme) as app:
179
  with gr.Row():
180
  with gr.Column():
181
  inp=gr.Textbox(label="Prompt")