TheShellMaster commited on
Commit
4c8c3eb
·
verified ·
1 Parent(s): 638597a

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. README.md +10 -6
  2. app.py +3 -4
  3. requirements.txt +2 -0
README.md CHANGED
@@ -1,13 +1,17 @@
1
  ---
2
  title: Cypher Coder
3
- emoji: 🏢
4
- colorFrom: green
5
- colorTo: blue
6
  sdk: gradio
7
- sdk_version: 6.15.2
8
- python_version: '3.13'
9
  app_file: app.py
10
  pinned: false
11
  ---
12
 
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
1
  ---
2
  title: Cypher Coder
3
+ emoji: 💻
4
+ colorFrom: indigo
5
+ colorTo: purple
6
  sdk: gradio
 
 
7
  app_file: app.py
8
  pinned: false
9
  ---
10
 
11
+ # Cypher Coder Space Backend
12
+
13
+ Ce Space sert de backend pour l'agent de programmation **Cypher Coder CLI**.
14
+
15
+ Il expose :
16
+ - Un redirect vers l'interface Gradio à `/gradio`
17
+ - Une API de chat pour le CLI à `/api/chat`
app.py CHANGED
@@ -300,7 +300,6 @@ with gr.Blocks(theme=theme, css=css) as demo:
300
 
301
  app = gr.mount_gradio_app(app, demo, path="/gradio")
302
 
303
- if __name__ == "__main__":
304
- import uvicorn
305
- # Lancement d'Uvicorn pour s'assurer que le script bloque et tourne indéfiniment
306
- uvicorn.run(app, host="0.0.0.0", port=7860)
 
300
 
301
  app = gr.mount_gradio_app(app, demo, path="/gradio")
302
 
303
+ # Lancement d'Uvicorn au niveau racine pour s'assurer que le script tourne indéfiniment
304
+ import uvicorn
305
+ uvicorn.run(app, host="0.0.0.0", port=7860)
 
requirements.txt CHANGED
@@ -1,3 +1,5 @@
 
 
1
  gradio
2
  huggingface_hub
3
  duckduckgo-search
 
1
+ fastapi
2
+ uvicorn
3
  gradio
4
  huggingface_hub
5
  duckduckgo-search