Sarath0x8f commited on
Commit
cab951b
·
verified ·
1 Parent(s): bc3cc39

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -53,7 +53,7 @@ def respond(message, history):
53
  return f"an error occurred {e}"
54
 
55
  # UI Setup
56
- with gr.Blocks() as demo:
57
  with gr.Row():
58
  with gr.Column(scale=1):
59
  file_input = gr.File(file_count="single", type='filepath')
@@ -75,4 +75,4 @@ with gr.Blocks() as demo:
75
 
76
  # Launch the demo with public link option
77
  if __name__ == "__main__":
78
- demo.launch()
 
53
  return f"an error occurred {e}"
54
 
55
  # UI Setup
56
+ with gr.Blocks() as main:
57
  with gr.Row():
58
  with gr.Column(scale=1):
59
  file_input = gr.File(file_count="single", type='filepath')
 
75
 
76
  # Launch the demo with public link option
77
  if __name__ == "__main__":
78
+ main.launch(share=True)