Spaces:
Running
Running
bugfix: add missing app var
Browse files
app.py
CHANGED
@@ -3249,6 +3249,10 @@ streaming_ai_chatbot = gr.Chatbot(
|
|
3249 |
show_copy_button=True,
|
3250 |
)
|
3251 |
def create_app():
|
|
|
|
|
|
|
|
|
3252 |
with gr.Blocks(theme=gr.themes.Base(primary_hue=gr.themes.colors.orange, secondary_hue=gr.themes.colors.amber, text_size = gr.themes.sizes.text_lg), head=HEAD, js=JS, css=CSS) as demo:
|
3253 |
with gr.Row() as admin:
|
3254 |
password = gr.Textbox(label="Password", type="password", elem_id="password_input", visible=True)
|
|
|
3249 |
show_copy_button=True,
|
3250 |
)
|
3251 |
def create_app():
|
3252 |
+
|
3253 |
+
app = FastAPI()
|
3254 |
+
app.add_middleware(BlockFileRedirectMiddleware)
|
3255 |
+
|
3256 |
with gr.Blocks(theme=gr.themes.Base(primary_hue=gr.themes.colors.orange, secondary_hue=gr.themes.colors.amber, text_size = gr.themes.sizes.text_lg), head=HEAD, js=JS, css=CSS) as demo:
|
3257 |
with gr.Row() as admin:
|
3258 |
password = gr.Textbox(label="Password", type="password", elem_id="password_input", visible=True)
|