Elliot223 commited on
Commit
9a08152
·
0 Parent(s):

Initial Brain5: Incremental Baseline

Browse files
Files changed (4) hide show
  1. Dockerfile +10 -0
  2. README.md +13 -0
  3. app.py +14 -0
  4. requirements.txt +1 -0
Dockerfile ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10
2
+
3
+ WORKDIR /code
4
+
5
+ COPY ./requirements.txt /code/requirements.txt
6
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
7
+
8
+ COPY . /code
9
+
10
+ CMD ["python", "app.py"]
README.md ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: Brain5 Iso
3
+ emoji: 🛡️
4
+ colorFrom: green
5
+ colorTo: blue
6
+ sdk: docker
7
+ pinned: false
8
+ app_port: 7860
9
+ ---
10
+
11
+ # Brain5: Incremental Isolation
12
+
13
+ Starting with proven Gradio baseline.
app.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def greet(name):
4
+ return "Hello " + name + " from Brain5 (Baseline)!"
5
+
6
+ with gr.Blocks() as demo:
7
+ gr.Markdown("# Brain5: Baseline")
8
+ name = gr.Textbox(label="Name")
9
+ output = gr.Textbox(label="Greeting")
10
+ btn = gr.Button("Greet")
11
+ btn.click(greet, inputs=name, outputs=output)
12
+
13
+ if __name__ == "__main__":
14
+ demo.launch(server_name="0.0.0.0", server_port=7860)
requirements.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ gradio