Files changed (1) hide show
  1. app_mindsearch.py +17 -0
app_mindsearch.py ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import spaces
3
+
4
+ # Load the Gradio space
5
+ demo = gr.load(name="internlm/MindSearch", src="spaces")
6
+
7
+ # Ensure the main function runs on a GPU
8
+ # if hasattr(demo, 'fn'):
9
+ # demo.fn = spaces.GPU()(demo.fn)
10
+
11
+ # Disable API access for all functions
12
+ if hasattr(demo, 'fns'):
13
+ for fn in demo.fns.values():
14
+ fn.api_name = False
15
+
16
+ if __name__ == "__main__":
17
+ demo.launch()