Spaces:
Runtime error
Runtime error
mindsearch (#20)
Browse files- feature: add mindsearch (f62a09df55aa9f7755f126f1ef5b3c30c491a8cc)
Co-authored-by: vansin <vansin@users.noreply.huggingface.co>
- 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()
|