Spaces:
Runtime error
Runtime error
Edward J. Schwartz
commited on
Commit
·
fc04944
1
Parent(s):
1d56a5d
Add script
Browse files- Dockerfile +2 -0
- app.py +2 -0
Dockerfile
CHANGED
|
@@ -26,4 +26,6 @@ WORKDIR $HOME/app
|
|
| 26 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 27 |
COPY --chown=user . $HOME/app
|
| 28 |
|
|
|
|
|
|
|
| 29 |
CMD ["python3", "app.py"]
|
|
|
|
| 26 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 27 |
COPY --chown=user . $HOME/app
|
| 28 |
|
| 29 |
+
RUN wget https://huggingface.co/datasets/ejschwartz/oo-method-test/raw/main/scripts/gen-training.py -O dis.py
|
| 30 |
+
|
| 31 |
CMD ["python3", "app.py"]
|
app.py
CHANGED
|
@@ -10,6 +10,8 @@ model = gr.load("ejschwartz/oo-method-test-model-bylibrary", src="models")
|
|
| 10 |
# ],
|
| 11 |
# live=True, title="Is it a method or a function?").launch(server_name="0.0.0.0", server_port=7860)
|
| 12 |
|
|
|
|
|
|
|
| 13 |
def get_funs(f):
|
| 14 |
return "cool"
|
| 15 |
|
|
|
|
| 10 |
# ],
|
| 11 |
# live=True, title="Is it a method or a function?").launch(server_name="0.0.0.0", server_port=7860)
|
| 12 |
|
| 13 |
+
import dis
|
| 14 |
+
|
| 15 |
def get_funs(f):
|
| 16 |
return "cool"
|
| 17 |
|