hotboxxgenn commited on
Commit
a7093d4
·
verified ·
1 Parent(s): 9f3ebda

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -61,7 +61,7 @@ def chat_endpoint(message, user_name, bot_name, bot_gender, file=None, project='
61
 
62
  css = open('static/style.css','r').read() if os.path.exists('static/style.css') else ''
63
 
64
- with gr.Blocks(css=css, title='GenBuddy') as demo:
65
  gr.Markdown("""<h1 style='text-align:center'>🌸 GenBuddy — Intelligent AI Buddy</h1>""")
66
  with gr.Row():
67
  with gr.Column(scale=3):
@@ -84,4 +84,4 @@ with gr.Blocks(css=css, title='GenBuddy') as demo:
84
  send.click(chat_endpoint, inputs=[message, user_name, bot_name, bot_gender, file_input, project], outputs=[out, history])
85
  list_btn.click(lambda p: json.dumps(list_project(p), indent=2), inputs=[project], outputs=[files_view])
86
  zip_btn.click(lambda p: build_zip(os.path.join('projects', p), f'/mnt/data/{p}.zip') or f'/mnt/data/{p}.zip', inputs=[project], outputs=[zip_out])
87
- demo.launch()
 
61
 
62
  css = open('static/style.css','r').read() if os.path.exists('static/style.css') else ''
63
 
64
+ with gr.Blocks(css=css, title='GenBuddy'):
65
  gr.Markdown("""<h1 style='text-align:center'>🌸 GenBuddy — Intelligent AI Buddy</h1>""")
66
  with gr.Row():
67
  with gr.Column(scale=3):
 
84
  send.click(chat_endpoint, inputs=[message, user_name, bot_name, bot_gender, file_input, project], outputs=[out, history])
85
  list_btn.click(lambda p: json.dumps(list_project(p), indent=2), inputs=[project], outputs=[files_view])
86
  zip_btn.click(lambda p: build_zip(os.path.join('projects', p), f'/mnt/data/{p}.zip') or f'/mnt/data/{p}.zip', inputs=[project], outputs=[zip_out])
87
+ launch()