caviri commited on
Commit
d7af185
·
1 Parent(s): 2c93adb

ci: Testing HF

Browse files
Files changed (2) hide show
  1. Dockerfile +0 -2
  2. app/main.py +15 -1
Dockerfile CHANGED
@@ -43,7 +43,5 @@ COPY . /digiwild
43
  RUN pip3 install -r /digiwild/requirements.txt
44
 
45
  RUN chmod -R 777 /digiwild/data /digiwild/app/assets
46
-
47
  WORKDIR /digiwild
48
-
49
  ENTRYPOINT python3 app/main.py
 
43
  RUN pip3 install -r /digiwild/requirements.txt
44
 
45
  RUN chmod -R 777 /digiwild/data /digiwild/app/assets
 
46
  WORKDIR /digiwild
 
47
  ENTRYPOINT python3 app/main.py
app/main.py CHANGED
@@ -332,6 +332,20 @@ with gr.Blocks(theme='shivi/calm_seafoam') as demo:
332
  #submit_button.click(save_and_rest_df, inputs=[df], outputs=[df])
333
 
334
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
335
 
336
  if __name__ == "__main__":
337
- demo.launch(server_name="0.0.0.0", server_port=3333)
 
332
  #submit_button.click(save_and_rest_df, inputs=[df], outputs=[df])
333
 
334
 
335
+ # Simple landing page with Gradio
336
+ with gr.Blocks(theme='shivi/calm_seafoam') as demo2:
337
+ with gr.Row():
338
+ with gr.Column(scale=1):
339
+ title = gr.Markdown("# Welcome to the Simple Landing Page", label="Title")
340
+ description = gr.Markdown("This is a simple landing page created with Gradio.", label="description")
341
+ with gr.Row():
342
+ button = gr.Button("Click Me", scale=1)
343
+ output = gr.Textbox(label="Output", interactive=False)
344
+
345
+ def on_button_click():
346
+ return "Button Clicked!"
347
+
348
+ button.click(on_button_click, outputs=output)
349
 
350
  if __name__ == "__main__":
351
+ demo2.launch(server_name="0.0.0.0", server_port=3333)