Dmitry Beresnev commited on
Commit
be1df97
·
1 Parent(s): 3836b4f

add app file

Browse files
Files changed (1) hide show
  1. app.py +14 -0
app.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import subprocess
3
+
4
+ # Start Clawdbot in the background
5
+ subprocess.Popen(["clawdbot", "gateway", "--port", "7860", "--vault-path", "/app/vault"])
6
+
7
+ # Minimal Gradio interface
8
+ def ask_clawdbot(question):
9
+ # Here you can call Clawdbot API locally
10
+ # For demo, just echo
11
+ return f"You asked: {question}"
12
+
13
+ iface = gr.Interface(fn=ask_clawdbot, inputs="text", outputs="text", title="Clawdbot Demo")
14
+ iface.launch(server_name="0.0.0.0", server_port=7860)