Kedar Dabhadkar commited on
Commit
162a84c
·
1 Parent(s): 1294243

Added app files

Browse files
Files changed (3) hide show
  1. Dockerfile +5 -0
  2. app.py +14 -0
  3. requirements.txt +2 -0
Dockerfile ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ FROM python:3.13-slim
2
+ ADD . /app
3
+ WORKDIR /app
4
+ RUN pip install --no-cache-dir -r requirements.txt
5
+ CMD gunicorn app:server --bind :${PORT:-7860}
app.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from fast_dash import FastDash
2
+
3
+ # Write the main callback function here
4
+ def simple_text_to_text(input_text: str) -> str:
5
+ return input_text
6
+
7
+
8
+ # Initialize your FastDash application here
9
+ app = FastDash(simple_text_to_text, port=7860)
10
+
11
+ server = app.server
12
+
13
+ if __name__ == '__main__':
14
+ app.run()
requirements.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ fast-dash
2
+ gunicorn