sharifIslam commited on
Commit
5dd0b96
·
1 Parent(s): d9c8485
Files changed (2) hide show
  1. app.py +4 -28
  2. requirements.txt +1 -1
app.py CHANGED
@@ -1,33 +1,9 @@
1
  import gradio as gr
2
- import logging
3
 
4
- logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
5
- logger = logging.getLogger(__name__)
6
 
7
- logger.info("="*50)
8
- logger.info("Starting MV3DR Test UI")
9
- logger.info("="*50)
10
-
11
- description = "Multi-View 3D Reconstruction using DUSt3R - Test UI"
12
- title = "Multi-View 3D Reconstruction (MV3DR)"
13
-
14
- # Dummy function for testing
15
- def process_images(image1, image2):
16
- logger.info("Test function called")
17
- return "UI is working! Model loading disabled for testing."
18
-
19
- interface = gr.Interface(
20
- fn=process_images,
21
- inputs=[
22
- gr.Image(label="Image 1", type="filepath"),
23
- gr.Image(label="Image 2", type="filepath")
24
- ],
25
- outputs=gr.Textbox(label="Status"),
26
- title=title,
27
- description=description
28
- )
29
 
30
  if __name__ == "__main__":
31
- logger.info("Launching Gradio UI...")
32
- interface.launch(server_name="0.0.0.0", server_port=7860, share=True)
33
- logger.info("Application started!")
 
1
  import gradio as gr
 
2
 
3
+ def greet(name):
4
+ return f"Hello, {name}!"
5
 
6
+ interface = gr.Interface(fn=greet, inputs="text", outputs="text")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
 
8
  if __name__ == "__main__":
9
+ interface.launch(server_name="0.0.0.0", server_port=7860)
 
 
requirements.txt CHANGED
@@ -1,7 +1,7 @@
1
  torch
2
  torchvision
3
  roma
4
- gradio==4.44.1
5
  huggingface_hub==0.26.2
6
  einops
7
  trimesh
 
1
  torch
2
  torchvision
3
  roma
4
+ gradio==4.44.0
5
  huggingface_hub==0.26.2
6
  einops
7
  trimesh